mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-22 08:30:35 +00:00
Fixing NPE possibility.
This commit is contained in:
parent
38dc876ba8
commit
53c860f102
@ -14,8 +14,8 @@ public class PrintExceptionMessageHandler implements IExecutionExceptionHandler
|
|||||||
ex.printStackTrace(System.err);
|
ex.printStackTrace(System.err);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// bold red error message
|
// bold red error message (+ "" is to handle null messages)
|
||||||
cmd.getErr().println(cmd.getColorScheme().errorText(ex.getMessage()));
|
cmd.getErr().println(cmd.getColorScheme().errorText(ex.getMessage() + ""));
|
||||||
}
|
}
|
||||||
|
|
||||||
return cmd.getExitCodeExceptionMapper() != null
|
return cmd.getExitCodeExceptionMapper() != null
|
||||||
|
Loading…
Reference in New Issue
Block a user