mirror of https://github.com/noisymime/Arduino.git
Replacing call to isEmpty(), which isn't in Java 1.5.
This commit is contained in:
parent
3875a6c00f
commit
189e023346
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue