mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-19 09:42:11 +03:00
Replacing call to isEmpty(), which isn't in Java 1.5.
This commit is contained in:
@ -25,7 +25,7 @@ public class I18n {
|
|||||||
static protected void init (String language) {
|
static protected void init (String language) {
|
||||||
// there might be a null pointer exception ... most likely will never happen but the jvm gets mad
|
// there might be a null pointer exception ... most likely will never happen but the jvm gets mad
|
||||||
try {
|
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);
|
else locale = new Locale(language);
|
||||||
i18n = ResourceBundle.getBundle("processing.app.Resources", locale);
|
i18n = ResourceBundle.getBundle("processing.app.Resources", locale);
|
||||||
} catch (java.lang.NullPointerException e) {
|
} catch (java.lang.NullPointerException e) {
|
||||||
|
Reference in New Issue
Block a user