Bug 50680 - NPE in TagFileProcessor when tag file is in an expanded directory "jar"
NPE in TagFileProcessor when tag file is in an expanded directory "jar"
Status: RESOLVED FIXED
Product: Tomcat 7
Classification: Unclassified
Component: Jasper
trunk
All All
: P2 normal (vote)
: ---
Assigned To: Tomcat Developers Mailing List
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2011-01-28 09:03 UTC by Larry Isaacs
Modified: 2011-01-28 16:21 UTC (History)
0 users



Attachments
Patch against current trunk to add a null check to TagFileProcessor (1.34 KB, text/plain)
2011-01-28 09:03 UTC, Larry Isaacs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Larry Isaacs 2011-01-28 09:03:07 UTC
Created attachment 26570 [details]
Patch against current trunk to add a null check to TagFileProcessor

When using VirtualDirContext, or the equivalent in the Web Tools Tomcat support, an expanded directory can be used in place of a jar file.  In this case, tag files in the directory's META-INF folder will result in an NPE because the jarResource obtained from the TldLocation is null.
Comment 1 Mark Thomas 2011-01-28 16:21:25 UTC
Many thanks for the patch.

I have applied it to 7.0.x and it will be in 7.0.7 onwards.