Fix bug 44428. Make sure m is not null to prevent NPE.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 9 Apr 2008 22:33:01 +0000 (22:33 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 9 Apr 2008 22:33:01 +0000 (22:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@646574 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/el/lang/FunctionMapperImpl.java

index a225e3b..de60ddb 100644 (file)
@@ -120,6 +120,8 @@ public class FunctionMapperImpl extends FunctionMapper implements
         public void writeExternal(ObjectOutput out) throws IOException {
             out.writeUTF((this.prefix != null) ? this.prefix : "");
             out.writeUTF(this.localName);
+            // make sure m isn't null
+            getMethod();
             out.writeUTF((this.owner != null) ? 
                      this.owner : 
                      this.m.getDeclaringClass().getName());