Commits

mbogaert  committed d29c4e8

Fixed WW-708: AbstractListTag classes throw NPE for null value.

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@665573baa09-0c28-0410-bef9-dab3c582ae83

  • Participants
  • Parent commits 34b3d42

Comments (0)

Files changed (1)

File src/java/com/opensymphony/webwork/views/jsp/ui/AbstractListTag.java

 /*
- * Copyright (c) 2002-2003 by OpenSymphony
+ * Copyright (c) 2002-2005 by OpenSymphony
  * All rights reserved.
  */
 package com.opensymphony.webwork.views.jsp.ui;
                 addParameter("listSize", new Integer(((Collection) value).size()));
             } else if (value instanceof Map) {
                 addParameter("listSize", new Integer(((Map) value).size()));
-            } else if (value.getClass().isArray()) {
+            } else if (value != null && value.getClass().isArray()) {
                 addParameter("listSize", new Integer(Array.getLength(value)));
             }
         }