Skip to content

Commit

Permalink
Prevent NPE
Browse files Browse the repository at this point in the history
java.lang.NullPointerException
    at org.csanchez.jenkins.plugins.kubernetes.pipeline.PodTemplateAction.pop(PodTemplateAction.java:40)
    at org.csanchez.jenkins.plugins.kubernetes.pipeline.PodTemplateStepExecution.stop(PodTemplateStepExecution.java:61)
  • Loading branch information
carlossg committed Dec 19, 2016
1 parent d8ac3a6 commit 7ddca17
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public void push(String template) throws IOException {
}

public String pop() throws IOException {
if (run == null) {
return null;
}
synchronized (run) {
BulkChange bc = new BulkChange(run);
try {
Expand Down

0 comments on commit 7ddca17

Please sign in to comment.