Avoid NPE.
This commit is contained in:
parent
65ceed93b6
commit
40cbeb694b
1 changed files with 2 additions and 3 deletions
|
|
@ -204,7 +204,7 @@ public class Runner extends Component {
|
|||
private static final String FW_VARS = "fw-vars.fd";
|
||||
private static int exitStatus;
|
||||
|
||||
private EventPipeline rep;
|
||||
private final EventPipeline rep = newEventPipeline();
|
||||
private final ObjectMapper yamlMapper = new ObjectMapper(YAMLFactory
|
||||
.builder().disable(YAMLGenerator.Feature.WRITE_DOC_START_MARKER)
|
||||
.build());
|
||||
|
|
@ -446,8 +446,7 @@ public class Runner extends Component {
|
|||
// https://github.com/kubernetes-client/java/issues/100
|
||||
io.kubernetes.client.openapi.Configuration.setDefaultApiClient(null);
|
||||
|
||||
// Prepare specific event pipeline to avoid concurrency.
|
||||
rep = newEventPipeline();
|
||||
// Provide specific event pipeline to avoid concurrency.
|
||||
event.setAssociated(EventPipeline.class, rep);
|
||||
try {
|
||||
// Store process id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue