Changeset 2e3f5d0d


Ignore:
Timestamp:
Mar 12, 2016 1:55:03 PM (6 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
319d4014
Parents:
dc36de6
Message:

UPnP: Fix NPE in HTML output on /peers (ticket #1779)

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

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/RouterVersion.java

    rdc36de6 r2e3f5d0d  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 10;
     21    public final static long BUILD = 11;
    2222
    2323    /** for example "-test" */
  • router/java/src/net/i2p/router/transport/UPnP.java

    rdc36de6 r2e3f5d0d  
    545545                                _lastArgumentList = getIP.getOutputArgumentList();
    546546                        }
    547                         String rv = _lastArgumentList.getArgument(arg).getValue();
     547                        Argument a = _lastArgumentList.getArgument(arg);
     548                        if (a == null)
     549                                return "";
     550                        String rv = a.getValue();
    548551                        return DataHelper.escapeHTML(rv);
    549552                }
Note: See TracChangeset for help on using the changeset viewer.