1
0
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:
Cristian Maglie 2014-07-03 13:01:18 +02:00
parent f9cdc5ea00
commit b36beeb4c0

View File

@ -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;
}