Skip to content

Commit

Permalink
RAP-11 Fixed null pointer exception for dependencyPackage at newAutho…
Browse files Browse the repository at this point in the history
…ringCycle endpoint
  • Loading branch information
QuyenLy87 committed Oct 13, 2023
1 parent 08520b9 commit b70343f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public ResponseEntity<Void> startNewAuthoringCycle(@PathVariable String releaseC
} catch (final ParseException e) {
throw new BadRequestException("Invalid effectiveTime format. Expecting format " + DateFormatUtils.ISO_8601_EXTENDED_DATE_FORMAT.getPattern() + ".", e);
}
releaseService.startNewAuthoringCycle(releaseCenterKey.trim(), productKey.trim(), effectiveTime, productSource.trim(), dependencyPackage.trim());
releaseService.startNewAuthoringCycle(releaseCenterKey.trim(), productKey.trim(), effectiveTime, productSource.trim(), dependencyPackage != null ? dependencyPackage.trim() : null);
return new ResponseEntity<>(HttpStatus.OK);
}

Expand Down

0 comments on commit b70343f

Please sign in to comment.