Issue Details (XML | Word | Printable)

Key: SHALE-332
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Craig McClanahan
Reporter: Mario Ivankovits
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Shale

NPE if javax.faces.CONFIG_FILES points to nonexistent file

Created: 13/Nov/06 04:02 PM   Updated: 23/Jan/07 04:40 PM
Return to search
Component/s: Tiger
Affects Version/s: 1.0.4-SNAPSHOT
Fix Version/s: 1.0.4

File Attachments:
  Size
File Licensed for inclusion in ASF works npe_prevention.diff 2006-11-13 04:03 PM Mario Ivankovits 0.8 kB


 Description  « Hide
LifecycleListener2 will fail with a NPE if javax.faces.CONFIG_FILES points to a nonexistent file.

Assumed that the JSF implementation should complain about such misconfigurations the attached patch will let shale-tiger silently ignore such entries.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #476426 Sat Nov 18 03:31:22 UTC 2006 craigmcc If the "javax.faces.CONFIG_FILES" context init parameter specifies missing
configuration resources, silently ignore them (on the assumption that the
JSF implementation will have already complained) rather than throwing NPE.

Fix based on a patch from Mario Ivankovits (thanks Mario!) but expaded to
cover the case where a comma separated list of resources is defined also.

SHALE-332
Files Changed
MODIFY /shale/framework/trunk/shale-tiger/src/main/java/org/apache/shale/tiger/view/faces/LifecycleListener2.java