Author: toad
Date: 2007-07-04 15:25:24 +0000 (Wed, 04 Jul 2007)
New Revision: 13916

Modified:
   trunk/freenet/src/freenet/support/SimpleFieldSet.java
Log:
Fix NPE

Modified: trunk/freenet/src/freenet/support/SimpleFieldSet.java
===================================================================
--- trunk/freenet/src/freenet/support/SimpleFieldSet.java       2007-07-04 
14:20:25 UTC (rev 13915)
+++ trunk/freenet/src/freenet/support/SimpleFieldSet.java       2007-07-04 
15:25:24 UTC (rev 13916)
@@ -788,6 +788,7 @@

        public int[] getIntArray(String key) {
                String[] strings = getAll(key);
+               if(strings == null) return null;
                int[] ret = new int[strings.length];
                for(int i=0;i<strings.length;i++) {
                        try {


Reply via email to