Skip to content

Commit

Permalink
Fix possible NPE, #32
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Nov 4, 2016
1 parent f44de2e commit 216d28f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/jline/utils/Log.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static void error(final Object... messages) {
* Helper to support rendering messages.
*/
static void render(final PrintStream out, final Object message) {
if (message.getClass().isArray()) {
if (message != null && message.getClass().isArray()) {
Object[] array = (Object[]) message;

out.print("[");
Expand Down

0 comments on commit 216d28f

Please sign in to comment.