From: Kevin Lamonte Date: Tue, 21 Mar 2017 19:21:46 +0000 (-0400) Subject: Fix NPE X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=0ab16dbbdccca171ddb03eed96fb011192659e79;p=fanfix-jexer.git Fix NPE --- diff --git a/src/jexer/io/SwingScreen.java b/src/jexer/io/SwingScreen.java index 8da762a..a70c882 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");