Skip to content

Commit

Permalink
[CYB-217] Fix NullPointerException when running on yarn cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
carolynduby committed Dec 26, 2024
1 parent b973766 commit d2393ae
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ private ChainLink doBuild(ParserChainSchema chainSchema) throws InvalidParserExc
for(ParserSchema parserSchema: chainSchema.getParsers()) {
ChainLink next;
boolean isRouter = ParserID.router().equals(parserSchema.getId());
parserSchema.setBasePath(Paths.get(chainSchema.getBasePath(), "..").toString());
if (chainSchema.getBasePath() != null) {
parserSchema.setBasePath(Paths.get(chainSchema.getBasePath(), "..").toString());
}
if(isRouter) {
next = buildRouter(parserSchema);
} else {
Expand Down

0 comments on commit d2393ae

Please sign in to comment.