Skip to content

Commit b36beeb

Browse files
committed
Fixed NullPointerException with i18n.
i18n class may not be initialized during init time.
1 parent f9cdc5e commit b36beeb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/processing/app/I18n.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ static protected void init(String language) throws MissingResourceException {
5353
public static String _(String s) {
5454
String res;
5555
try {
56-
res = i18n.getString(s);
56+
if (i18n == null)
57+
res = s;
58+
else
59+
res = i18n.getString(s);
5760
} catch (MissingResourceException e) {
5861
res = s;
5962
}

0 commit comments

Comments
 (0)