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) {
|
if (grabbed) {
|
||||||
Mouse.setGrabbed(false);
|
Mouse.setGrabbed(false);
|
||||||
}
|
}
|
||||||
|
if (title == null)
|
||||||
|
title = "";
|
||||||
|
if (message == null)
|
||||||
|
message = "";
|
||||||
String osName = System.getProperty("os.name");
|
String osName = System.getProperty("os.name");
|
||||||
if (osName.startsWith("Windows")) {
|
if (osName.startsWith("Windows")) {
|
||||||
nAlert(title, message);
|
nAlert(title, message);
|
||||||
|
|
Loading…
Reference in New Issue