From 3175593216a7f186f541c018beec75e34977214a Mon Sep 17 00:00:00 2001 From: Oleksandr Moliavko Date: Fri, 9 Aug 2019 13:25:38 +0300 Subject: Moved setNeutronNetworkId() call inside null check to prevent crash at outputs.get() call Issue-ID: SO-1841 Signed-off-by: Oleksandr Moliavko Change-Id: I51ad7a6de93c88ce6743234b943f9abcbc065a70 --- .../main/java/org/onap/so/adapters/network/MsoNetworkAdapterImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'adapters/mso-openstack-adapters/src/main') diff --git a/adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/network/MsoNetworkAdapterImpl.java b/adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/network/MsoNetworkAdapterImpl.java index 4c115271f0..cd98cf8d87 100644 --- a/adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/network/MsoNetworkAdapterImpl.java +++ b/adapters/mso-openstack-adapters/src/main/java/org/onap/so/adapters/network/MsoNetworkAdapterImpl.java @@ -462,13 +462,13 @@ public class MsoNetworkAdapterImpl implements MsoNetworkAdapter { } } } + networkRollback.setNeutronNetworkId((String) outputs.get(NETWORK_ID)); } subnetIdMap.value = sMap; rollback.value = networkRollback; // Populate remaining rollback info and response parameters. networkRollback.setNetworkStackId(heatStack.getCanonicalName()); - networkRollback.setNeutronNetworkId((String) heatStack.getOutputs().get(NETWORK_ID)); networkRollback.setNetworkCreated(true); networkRollback.setNetworkType(networkType); -- cgit 1.2.3-korg