From 0ab16dbbdccca171ddb03eed96fb011192659e79 Mon Sep 17 00:00:00 2001 From: Kevin Lamonte Date: Tue, 21 Mar 2017 15:21:46 -0400 Subject: [PATCH] Fix NPE --- src/jexer/io/SwingScreen.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/jexer/io/SwingScreen.java b/src/jexer/io/SwingScreen.java index 8da762af..a70c8824 100644 --- a/src/jexer/io/SwingScreen.java +++ b/src/jexer/io/SwingScreen.java @@ -325,10 +325,12 @@ public final class SwingScreen extends Screen { cursorStyle = CursorStyle.BLOCK; } - if (System.getProperty("jexer.Swing.tripleBuffer"). - equals("false")) { + if (System.getProperty("jexer.Swing.tripleBuffer") != null) { + if (System.getProperty("jexer.Swing.tripleBuffer"). + equals("false")) { - SwingScreen.tripleBuffer = false; + SwingScreen.tripleBuffer = false; + } } setTitle("Jexer Application"); -- 2.27.0