Changeset 0d5cf46
- Timestamp:
- Aug 9, 2016 5:27:54 PM (5 years ago)
- Branches:
- master
- Children:
- b21b953
- Parents:
- 9c0ae146
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
history.txt
r9c0ae146 r0d5cf46 1 2016-08-09 zzz 2 * Console: Fix UPnP NPE on /peers (ticket #1830) 3 1 4 2016-08-02 zzz 2 5 * i2psnark: Fix SIOOBE on bad announce URL (ticket #1823) -
router/java/src/net/i2p/router/RouterVersion.java
r9c0ae146 r0d5cf46 19 19 public final static String ID = "Monotone"; 20 20 public final static String VERSION = CoreVersion.VERSION; 21 public final static long BUILD = 8;21 public final static long BUILD = 9; 22 22 23 23 /** for example "-test" */ -
router/java/src/net/i2p/router/transport/UPnP.java
r9c0ae146 r0d5cf46 421 421 return null; 422 422 423 String rv = (getIP.getOutputArgumentList().getArgument("NewExternalIPAddress")).getValue(); 423 Argument a = getIP.getOutputArgumentList().getArgument("NewExternalIPAddress"); 424 if (a == null) 425 return null; 426 String rv = a.getValue(); 424 427 // I2P some devices return 0.0.0.0 when not connected 425 428 if ("0.0.0.0".equals(rv) || rv == null || rv.length() <= 0) … … 443 446 return -1; 444 447 448 Argument a = getIP.getOutputArgumentList().getArgument("NewUpstreamMaxBitRate"); 449 if (a == null) 450 return -1; 445 451 try { 446 return Integer.parseInt( getIP.getOutputArgumentList().getArgument("NewUpstreamMaxBitRate").getValue());452 return Integer.parseInt(a.getValue()); 447 453 } catch (NumberFormatException nfe) { 448 454 return -1; … … 465 471 return -1; 466 472 473 Argument a = getIP.getOutputArgumentList().getArgument("NewDownstreamMaxBitRate"); 474 if (a == null) 475 return -1; 467 476 try { 468 return Integer.parseInt( getIP.getOutputArgumentList().getArgument("NewDownstreamMaxBitRate").getValue());477 return Integer.parseInt(a.getValue()); 469 478 } catch (NumberFormatException nfe) { 470 479 return -1;
Note: See TracChangeset
for help on using the changeset viewer.