Skip to content

Commit 15e07d0

Browse files
authored
fix NullPointerException (#3118)
1 parent b4429bb commit 15e07d0

File tree

1 file changed

+1
-1
lines changed
  • integration-tests/src/test/java/oracle/weblogic/kubernetes/assertions/impl

1 file changed

+1
-1
lines changed

integration-tests/src/test/java/oracle/weblogic/kubernetes/assertions/impl/Kubernetes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ public static boolean isDeploymentReady(String deploymentName,
661661
String namespace) throws ApiException {
662662
boolean status = false;
663663
V1Deployment deployment = getDeployment(deploymentName, label, namespace);
664-
if (deployment != null) {
664+
if (deployment != null && deployment.getStatus() != null && deployment.getStatus().getConditions() != null) {
665665
// get the deploymentCondition with the 'Available' type field
666666
V1DeploymentCondition v1DeploymentRunningCondition = deployment.getStatus().getConditions().stream()
667667
.filter(v1DeploymentCondition -> "Available".equals(v1DeploymentCondition.getType()))

0 commit comments

Comments
 (0)