Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #201 from davco01a/issue625
Browse files Browse the repository at this point in the history
NPE fix for issue 625
  • Loading branch information
s1cyan authored Jun 4, 2020
2 parents c5b6faf + e911d87 commit 35c671d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/main/java/application/rest/StackUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -442,9 +442,16 @@ public static String digestCheck(String kabDigest, String imageDigest, String st
System.out.println("Could not find one of the digests. Kab digest="+kabDigest+", imageDigest="+imageDigest);
digestCheck="unknown";
}

status=status.substring(0, 6);
if (!"active".contentEquals(status)) {
if (status!=null) {
if (status.contains("active")) {
status=status.substring(0, 6);
if (!"active".contentEquals(status)) {
digestCheck = "NA";
}
} else {
digestCheck = "NA";
}
} else {
digestCheck = "NA";
}
return digestCheck;
Expand Down

0 comments on commit 35c671d

Please sign in to comment.