aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--champ-service/src/main/java/org/onap/champ/ChampRESTAPI.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/champ-service/src/main/java/org/onap/champ/ChampRESTAPI.java b/champ-service/src/main/java/org/onap/champ/ChampRESTAPI.java
index 58db3be..1f9400f 100644
--- a/champ-service/src/main/java/org/onap/champ/ChampRESTAPI.java
+++ b/champ-service/src/main/java/org/onap/champ/ChampRESTAPI.java
@@ -289,7 +289,7 @@ public class ChampRESTAPI {
httpHeadersValidator.validateRequestHeaders(headers);
ChampTransaction transaction = tId == null ? null : champDataService.getTransaction(tId);
- if (transaction == null) {
+ if (tId != null && transaction == null) {
throw new ChampServiceException("No transaction found for transaction ID: " + tId, Status.BAD_REQUEST);
}
retrieved = champDataService.getRelationshipsByObject(oId, Optional.ofNullable(transaction));