Skip to content

Commit

Permalink
[Cassandra] Fix NPE in isReady
Browse files Browse the repository at this point in the history
  • Loading branch information
avano committed Apr 13, 2023
1 parent a30bf03 commit 0f0fa19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public void closeResources() {
@Override
public boolean isReady() {
final PodResource<Pod> pod = servicePod();
if (pod.isReady()) {
if (pod != null && pod.isReady()) {
return OpenshiftClient.get().getLogs(pod.get()).contains("Startup complete");
}
return false;
Expand Down

0 comments on commit 0f0fa19

Please sign in to comment.