diff --git a/src/main/java/application/rest/StackUtils.java b/src/main/java/application/rest/StackUtils.java index 1c9677d..822f686 100644 --- a/src/main/java/application/rest/StackUtils.java +++ b/src/main/java/application/rest/StackUtils.java @@ -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) {