Skip to content

Commit

Permalink
Fixing namespace could be null
Browse files Browse the repository at this point in the history
  • Loading branch information
coreydaley authored and gabemontero committed Apr 23, 2018
1 parent 04f99aa commit 38f65a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public String toString() {

private void init() {
// Use namespace.split here to simulate passing an array of strings
namespace = OpenShiftUtils.getNamespaceOrUseDefault(namespace.split(" "), getOpenShiftClient())[0];
namespace = OpenShiftUtils.getNamespaceOrUseDefault(((namespace != null) ? namespace.split(" ") : null), getOpenShiftClient())[0];
}

@Override
Expand Down

0 comments on commit 38f65a2

Please sign in to comment.