diff options
author | Arundathi Patil <arundpil@in.ibm.com> | 2018-08-28 12:51:42 +0530 |
---|---|---|
committer | IBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com> | 2018-08-28 12:51:56 +0530 |
commit | c2e7e16d876a7a08d8149ee1c7c300346d38a4b4 (patch) | |
tree | 17f71b7589d6df619b3cf8096f26c84faa7f571b /src/main/java | |
parent | c79755d43c123176515e5cafbba0774a03d297d3 (diff) |
MusicConditional.java: Fixed sonar issue
Fixed sonar issue, null pointer exception could be thrown
Issue-ID: MUSIC-112
Change-Id: I2480634a270114c21d23dda72c381b7e9e389b18
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/onap/music/conductor/conditionals/MusicConditional.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/onap/music/conductor/conditionals/MusicConditional.java b/src/main/java/org/onap/music/conductor/conditionals/MusicConditional.java index 0fc9ffe3..c97ccfab 100644 --- a/src/main/java/org/onap/music/conductor/conditionals/MusicConditional.java +++ b/src/main/java/org/onap/music/conductor/conditionals/MusicConditional.java @@ -335,7 +335,7 @@ public class MusicConditional { Map<String, String> finalValues = new HashMap<>(); values = (Map<String, String>) columnValue; - if (values.keySet().contains(planId)) { + if (values != null && values.keySet().contains(planId)) { String valueString = values.get(planId); String tempValueString = valueString.replaceAll("\\{", "").replaceAll("\"", "").replaceAll("\\}", ""); String[] elements = tempValueString.split(","); |