Skip to content

Commit

Permalink
🐛 fix(validation): Validate null deliverable type id
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjitm committed Jan 23, 2024
1 parent 50002e2 commit c973dfc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,8 @@ public void validate(BaseAction action, Deliverable deliverable, boolean saving)
*/
// Deliverable Quality Check
if (deliverable.getDeliverableInfo(action.getActualPhase()).getDeliverableType() != null
&& (deliverable.getDeliverableInfo(action.getActualPhase()).getDeliverableType().getId().intValue() == 51
&& (deliverable.getDeliverableInfo(action.getActualPhase()).getDeliverableType().getId() != null
&& deliverable.getDeliverableInfo(action.getActualPhase()).getDeliverableType().getId().intValue() == 51
|| deliverable.getDeliverableInfo(action.getActualPhase()).getDeliverableType().getId()
.intValue() == 74)) {
if (deliverable.getQualityCheck() != null) {
Expand Down

0 comments on commit c973dfc

Please sign in to comment.