Commits

plightbo  committed 8b655c7

avoids NPE on htmlEncode

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

  • Participants
  • Parent commits 4f8322e

Comments (0)

Files changed (1)

File src/java/com/opensymphony/webwork/util/WebWorkUtil.java

     }
 
     public String htmlEncode(Object obj) {
+        if (obj == null) {
+            return null;
+        }
+
         return TextUtils.htmlEncode(obj.toString());
     }