Code Review
/
dmaap
/
dbcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Merge "TopicService: Fixed sonar issue"
[dmaap/dbcapi.git]
/
src
/
main
/
java
/
org
/
onap
/
dmaap
/
dbcapi
/
service
/
TopicService.java
diff --git
a/src/main/java/org/onap/dmaap/dbcapi/service/TopicService.java
b/src/main/java/org/onap/dmaap/dbcapi/service/TopicService.java
index
3943419
..
26def91
100644
(file)
--- a/
src/main/java/org/onap/dmaap/dbcapi/service/TopicService.java
+++ b/
src/main/java/org/onap/dmaap/dbcapi/service/TopicService.java
@@
-197,7
+197,9
@@
public class TopicService extends BaseLoggingClass {
return null;
}
}
- mr_topics.put( ntopic.getFqtn(), ntopic );
+ if(ntopic != null) {
+ mr_topics.put( ntopic.getFqtn(), ntopic );
+ }
err.setCode(Status.OK.getStatusCode());
return ntopic;
}