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 #169 from davco01a/latest
Browse files Browse the repository at this point in the history
fix NPE when stack is inactive
  • Loading branch information
s1cyan authored Apr 10, 2020
2 parents 46daca8 + 8e138fc commit 415c529
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/main/java/application/rest/StackUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -441,13 +441,12 @@ public static List allStacks(StackList fromKabanero, String namespace, List cura

kabDigest = (String) imageMap.get("digest");
image = (String) imageMap.get("imageName"); // docker.io/kabanero/nodejs
StringTokenizer st = new StringTokenizer(image,"/");

String containerRegistryURL = st.nextToken();
String crNameSpace = st.nextToken();

imageDigest = getImageDigestFromRegistry(name, versionNum, namespace, crNameSpace, containerRegistryURL);

if (image!=null) {
StringTokenizer st = new StringTokenizer(image,"/");
String containerRegistryURL = st.nextToken();
String crNameSpace = st.nextToken();
imageDigest = getImageDigestFromRegistry(name, versionNum, namespace, crNameSpace, containerRegistryURL);
}

String digestCheck="mismatched";
if (kabDigest!=null && imageDigest!=null) {
Expand Down

0 comments on commit 415c529

Please sign in to comment.