Skip to content

Commit 3e382c8

Browse files
authored
fix NullPointerException (#3258)
1 parent 596c2b1 commit 3e382c8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMiiDomain.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,8 +1022,8 @@ private static void collectAppAvailability(
10221022
.atMost(15, MINUTES)
10231023
.await()
10241024
.conditionEvaluationListener(
1025-
condition -> logger.info("Waiting for patched application running on all managed servers in namespace {1} "
1026-
+ "(elapsed time {2}ms, remaining time {3}ms)",
1025+
condition -> logger.info("Waiting for patched application running on all managed servers in namespace {0} "
1026+
+ "(elapsed time {1}ms, remaining time {2}ms)",
10271027
namespace,
10281028
condition.getElapsedTimeInMS(),
10291029
condition.getRemainingTimeInMS()))

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
@@ -371,7 +371,7 @@ public static boolean isOperatorPodReady(String namespace) throws ApiException {
371371
boolean status = false;
372372
String labelSelector = String.format("weblogic.operatorName in (%s)", namespace);
373373
V1Pod pod = getPod(namespace, labelSelector, "weblogic-operator-");
374-
if (pod != null) {
374+
if (pod != null && pod.getStatus() != null && pod.getStatus().getConditions() != null) {
375375
// get the podCondition with the 'Ready' type field
376376
V1PodCondition v1PodReadyCondition = pod.getStatus().getConditions().stream()
377377
.filter(v1PodCondition -> "Ready".equals(v1PodCondition.getType()))

0 commit comments

Comments
 (0)