Bug 50680 - NPE in TagFileProcessor when tag file is in an expanded directory "jar"
Summary: NPE in TagFileProcessor when tag file is in an expanded directory "jar"
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 7
Classification: Unclassified
Component: Jasper (show other bugs)
Version: trunk
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
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.