git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix NPE
[nikiroo-utils.git]
/
src
/
jexer
/
io
/
SwingScreen.java
diff --git
a/src/jexer/io/SwingScreen.java
b/src/jexer/io/SwingScreen.java
index 8da762af3158811c59427b5ab773a04ed9f1ed17..a70c8824b3cc82c5198a42d51342e0a160da67d9 100644
(file)
--- 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;
}
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");
}
setTitle("Jexer Application");