mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-22 16:54:20 +01:00
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) {
|
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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user