mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-20 14:54:31 +01:00
Fixed NullPointerException with i18n.
i18n class may not be initialized during init time.
This commit is contained in:
parent
f9cdc5ea00
commit
b36beeb4c0
@ -53,7 +53,10 @@ public class I18n {
|
||||
public static String _(String s) {
|
||||
String res;
|
||||
try {
|
||||
res = i18n.getString(s);
|
||||
if (i18n == null)
|
||||
res = s;
|
||||
else
|
||||
res = i18n.getString(s);
|
||||
} catch (MissingResourceException e) {
|
||||
res = s;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user