Don't allow null strings in Sys.alert()

This commit is contained in:
Elias Naur 2005-01-15 16:30:17 +00:00
parent ed3acebaa5
commit 73552e3d51
1 changed files with 4 additions and 0 deletions

View File

@ -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);