Changeset 8ed1b96 for core


Ignore:
Timestamp:
Apr 29, 2018 8:57:47 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
ab039b8
Parents:
c73b5b9
Message:

Console: Fix NPE on /configsidebar (ticket #2220)
Don't throw NPE translating null
Add note about split()
Fix form inside table

Location:
core/java/src/net/i2p
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/data/DataHelper.java

    rc73b5b9 r8ed1b96  
    19511951     *  This saves about 10 microseconds (Bulldozer) on subsequent invocations.
    19521952     *
     1953     *  Note: For an input "" this returns [""], not a zero-length array.
     1954     *  This is the same behavior as String.split().
     1955     *
    19531956     *  @param s non-null
    19541957     *  @param regex non-null, don't forget to enclose multiple choices with []
     
    19651968     *  Same as s.split(regex, limit) but caches the compiled pattern for speed.
    19661969     *  This saves about 10 microseconds (Bulldozer) on subsequent invocations.
     1970     *
     1971     *  Note: For an input "" this returns [""], not a zero-length array.
     1972     *  This is the same behavior as String.split().
    19671973     *
    19681974     *  @param s non-null
  • core/java/src/net/i2p/util/Translate.java

    rc73b5b9 r8ed1b96  
    4444    /** lang in routerconsole.lang property, else current locale */
    4545    public static String getString(String key, I2PAppContext ctx, String bun) {
     46        if (key == null) {
     47            (new NullPointerException("null translation string")).printStackTrace();
     48            return "";
     49        }
    4650        String lang = getLanguage(ctx);
    4751        if (lang.equals("en"))
Note: See TracChangeset for help on using the changeset viewer.