diff options
author | Lukasz Rajewski <lukasz.rajewski@orange.com> | 2021-02-17 14:11:06 +0100 |
---|---|---|
committer | Lukasz Rajewski <lukasz.rajewski@orange.com> | 2021-02-17 14:15:18 +0100 |
commit | b85d065c68fe2893e03a391768b91a630dce5988 (patch) | |
tree | 50e572164c7a4c15802c3a2f90ce75d5ba8af1cb /ms/blueprintsprocessor/functions | |
parent | 273a6f7cbc4313cdd05e46d4f68ab7969e0ab6d1 (diff) |
Fixed null pointer exception for JSON RA
Fixed null pointer exception for JSON RA
Issue-ID: CCSDK-3170
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I721ff7966a1c1bd99ab948cdc410f05688ddea23
Diffstat (limited to 'ms/blueprintsprocessor/functions')
-rw-r--r-- | ms/blueprintsprocessor/functions/resource-resolution/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/utils/ResourceAssignmentUtils.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ms/blueprintsprocessor/functions/resource-resolution/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/utils/ResourceAssignmentUtils.kt b/ms/blueprintsprocessor/functions/resource-resolution/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/utils/ResourceAssignmentUtils.kt index 3440e3860..5a03450ed 100644 --- a/ms/blueprintsprocessor/functions/resource-resolution/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/utils/ResourceAssignmentUtils.kt +++ b/ms/blueprintsprocessor/functions/resource-resolution/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/utils/ResourceAssignmentUtils.kt @@ -685,7 +685,9 @@ class ResourceAssignmentUtils { raRuntimeService: ResourceAssignmentRuntimeService ): Boolean { val dataTypeProps = raRuntimeService.bluePrintContext().dataTypeByName(dataTypeName)?.properties - val result = outputKeyMapping.filterKeys { !dataTypeProps!!.containsKey(it) }.keys.firstOrNull() + var result: String? = null + if (dataTypeProps != null) + result = outputKeyMapping.filterKeys { !dataTypeProps.containsKey(it) }.keys.firstOrNull() return result == null } |