Author: toad
Date: 2007-06-28 13:11:56 +0000 (Thu, 28 Jun 2007)
New Revision: 13795
Modified:
trunk/plugins/JSTUN/JSTUN.java
Log:
Fix NPE
Modified: trunk/plugins/JSTUN/JSTUN.java
===================================================================
--- trunk/plugins/JSTUN/JSTUN.java 2007-06-28 12:36:44 UTC (rev 13794)
+++ trunk/plugins/JSTUN/JSTUN.java 2007-06-28 13:11:56 UTC (rev 13795)
@@ -199,8 +199,10 @@
}
}
- for(int i=0; i<ip.length; i++)
- ip[i].mtu = mtu;
+ if(ip != null) {
+ for(int i=0; i<ip.length; i++)
+ ip[i].mtu = mtu;
+ }
} catch (Throwable t) {
ip = null;
System.err.println("Caught "+t);