Skip to content

Commit

Permalink
fix: ClusterHelper is NPE is the client is OpenShiftClient (#86)
Browse files Browse the repository at this point in the history
Fixes #85

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
  • Loading branch information
jeffmaury authored Jun 25, 2021
1 parent 1dd32ae commit 42cfab2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ideaVersion = IC-2018.3
projectVersion=1.3.0-SNAPSHOT
projectVersion=1.2.1-SNAPSHOT
nexusUser=invalid
nexusPassword=invalid
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ private static String assemble(String major, String minor) {
}

public static ClusterInfo getClusterInfo(KubernetesClient client) {
if (client.isAdaptable(OpenShiftClient.class)) {
if (client instanceof OpenShiftClient || client.isAdaptable(OpenShiftClient.class)) {
OpenShiftClient oclient;
if (client instanceof OpenShiftClient) {
oclient = (OpenShiftClient) client;
Expand Down

0 comments on commit 42cfab2

Please sign in to comment.