diff options
Diffstat (limited to 'vid-app-common/src/main/java/org/onap/vid/controller/AaiServiceInstanceStandardQueryController.java')
-rw-r--r-- | vid-app-common/src/main/java/org/onap/vid/controller/AaiServiceInstanceStandardQueryController.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/controller/AaiServiceInstanceStandardQueryController.java b/vid-app-common/src/main/java/org/onap/vid/controller/AaiServiceInstanceStandardQueryController.java index 015f8dc96..c467d99de 100644 --- a/vid-app-common/src/main/java/org/onap/vid/controller/AaiServiceInstanceStandardQueryController.java +++ b/vid-app-common/src/main/java/org/onap/vid/controller/AaiServiceInstanceStandardQueryController.java @@ -139,6 +139,10 @@ public class AaiServiceInstanceStandardQueryController extends VidRestrictedBase if (serviceModel == null) { throw new GenericUncheckedException("Internal error while fetching Service Model: " + sdcModelUuid); } + if (serviceModel.getService() == null || serviceModel.getService().getVidNotions() == null) { + return false; + } + VidNotions.ModelCategory serviceModelCategory = serviceModel.getService().getVidNotions().getModelCategory(); return (serviceModelCategory == VidNotions.ModelCategory.IS_5G_PROVIDER_NETWORK_MODEL) || (serviceModelCategory == VidNotions.ModelCategory.IS_5G_FABRIC_CONFIGURATION_MODEL); |