Skip to content

Commit

Permalink
SystemRegistryImpl: fixed NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
mattirn committed May 9, 2020
1 parent 1a9ee1b commit b695c9b
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1099,12 +1099,8 @@ private Object execute(String command, String rawLine, String[] args) throws Exc
} else {
int id = registryId(command);
if (id > -1) {
if (consoleId != null) {
out = commandRegistries[id].invoke(outputStream.getCommandSession(), command,
consoleEngine().expandParameters(args));
} else {
out = commandRegistries[id].execute(outputStream.getCommandSession(), command, args);
}
Object[] _args = consoleId != null ? consoleEngine().expandParameters(args) : (Object[])args;
out = commandRegistries[id].invoke(outputStream.getCommandSession(), command, _args);
} else if (scriptStore.hasScript(command)) {
out = consoleEngine().execute(command, rawLine, args);
} else {
Expand Down

0 comments on commit b695c9b

Please sign in to comment.