summaryrefslogtreecommitdiffstats
path: root/ms/neng/src/main
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2018-11-15 20:53:04 +0000
committerGerrit Code Review <gerrit@onap.org>2018-11-15 20:53:04 +0000
commit009719f00f0ad2c5856d20a9c0acb71937ccc06c (patch)
treec127b18406c42cad119e29ee074614d57fc4177b /ms/neng/src/main
parent52397416e7d235dcdc5ae15d22798d00789f72f7 (diff)
parent4ed01bea8806595d85b9c73419e5d1fb582279a9 (diff)
Merge "Fixed sonar issue in ExternalKeyValidator"
Diffstat (limited to 'ms/neng/src/main')
-rw-r--r--ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/validator/ExternalKeyValidator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/validator/ExternalKeyValidator.java b/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/validator/ExternalKeyValidator.java
index 28dde566..4b7ec79b 100644
--- a/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/validator/ExternalKeyValidator.java
+++ b/ms/neng/src/main/java/org/onap/ccsdk/apps/ms/neng/core/validator/ExternalKeyValidator.java
@@ -36,7 +36,7 @@ public class ExternalKeyValidator {
* Tells if the given external ID is present in the DB.
*/
public boolean isPresent(String externalId) {
- if (genNameRepo.findByExternalId(externalId).size() > 0) {
+ if (genNameRepo.findByExternalId(externalId).size() > 0 || genNameRepo.findByExternalId(externalId).isEmpty() ) {
return true;
}
return false;