mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-21 15:54:39 +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,6 +53,9 @@ public class I18n {
|
||||
public static String _(String s) {
|
||||
String res;
|
||||
try {
|
||||
if (i18n == null)
|
||||
res = s;
|
||||
else
|
||||
res = i18n.getString(s);
|
||||
} catch (MissingResourceException e) {
|
||||
res = s;
|
||||
|
Loading…
x
Reference in New Issue
Block a user