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:
zzz
2018-04-29 20:57:47 +00:00
parent c73b5b9edb
commit 8ed1b96f3a
6 changed files with 33 additions and 7 deletions

View File

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