diff options
author | Tait,Trevor(rt0435) <rtait@amdocs.com> | 2019-02-20 11:49:35 -0500 |
---|---|---|
committer | Tait,Trevor(rt0435) <rtait@amdocs.com> | 2019-02-20 11:50:04 -0500 |
commit | 6e2b5a9df11eb5a1ae455ff3c7a17ff1ad855b2e (patch) | |
tree | 721e926e86c22af438a62639a4debddd4744e5ae /src | |
parent | f7f9a94854dd70d29945cf25e7fe0ea1a10c16da (diff) |
FIX: NPE
Issue-ID: LOG-981
Change-Id: I234b639d6c5afa572f86aa17ad9419bf7d839928
Signed-off-by: Tait,Trevor(rt0435) <rtait@amdocs.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/onap/pomba/contextbuilder/sdnc/util/RestUtil.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/onap/pomba/contextbuilder/sdnc/util/RestUtil.java b/src/main/java/org/onap/pomba/contextbuilder/sdnc/util/RestUtil.java index 0353661..bd073c7 100644 --- a/src/main/java/org/onap/pomba/contextbuilder/sdnc/util/RestUtil.java +++ b/src/main/java/org/onap/pomba/contextbuilder/sdnc/util/RestUtil.java @@ -218,6 +218,9 @@ public class RestUtil { Object jsonInput = JsonUtils.jsonToObject(sdncResponse); Chainr chainr = Chainr.fromSpec(jsonSpec); Object transObject = chainr.transform(jsonInput); + if (null == transObject) { + return new ModelContext(); + } Gson gson = new Gson(); return gson.fromJson(JsonUtils.toPrettyJsonString(transObject), ModelContext.class); |