Don't allow null strings in Sys.alert()
This commit is contained in:
parent
ed3acebaa5
commit
73552e3d51
|
@ -210,6 +210,10 @@ public final class Sys {
|
|||
if (grabbed) {
|
||||
Mouse.setGrabbed(false);
|
||||
}
|
||||
if (title == null)
|
||||
title = "";
|
||||
if (message == null)
|
||||
message = "";
|
||||
String osName = System.getProperty("os.name");
|
||||
if (osName.startsWith("Windows")) {
|
||||
nAlert(title, message);
|
||||
|
|
Loading…
Reference in New Issue