forked from I2P_Developers/i2p.i2p
Console: Fix NPE on /configsidebar (ticket #2220)
Don't throw NPE translating null Add note about split() Fix form inside table
This commit is contained in:
@@ -43,6 +43,10 @@ public abstract class Translate {
|
||||
|
||||
/** lang in routerconsole.lang property, else current locale */
|
||||
public static String getString(String key, I2PAppContext ctx, String bun) {
|
||||
if (key == null) {
|
||||
(new NullPointerException("null translation string")).printStackTrace();
|
||||
return "";
|
||||
}
|
||||
String lang = getLanguage(ctx);
|
||||
if (lang.equals("en"))
|
||||
return key;
|
||||
|
||||
Reference in New Issue
Block a user