From 189e023346926127cefeed1c57eb1629f7ecaba0 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sun, 8 Apr 2012 16:18:57 -0400 Subject: [PATCH] Replacing call to isEmpty(), which isn't in Java 1.5. --- app/src/processing/app/I18n.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/processing/app/I18n.java b/app/src/processing/app/I18n.java index 3356f8e79..5a61fb3d7 100644 --- a/app/src/processing/app/I18n.java +++ b/app/src/processing/app/I18n.java @@ -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) {