Replacing call to isEmpty(), which isn't in Java 1.5.

This commit is contained in:
David A. Mellis 2012-04-08 16:18:57 -04:00
parent 3875a6c00f
commit 189e023346
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ public class I18n {
static protected void init (String language) {
// there might be a null pointer exception ... most likely will never happen but the jvm gets mad
try {
if (language == null || language.trim().isEmpty()) locale = Locale.getDefault();
if (language == null || language.trim().length() == 0) locale = Locale.getDefault();
else locale = new Locale(language);
i18n = ResourceBundle.getBundle("processing.app.Resources", locale);
} catch (java.lang.NullPointerException e) {