[
http://jira.jboss.com/jira/browse/JBSEAM-1095?page=all ]
Shane Bryzak closed JBSEAM-1095.
--------------------------------
Fix Version/s: 1.2.1.GA
Resolution: Done
Assignee: Shane Bryzak
Fixed in CVS.
Anticipate NPE in Resource loading
----------------------------------
Key: JBSEAM-1095
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1095
Project: JBoss Seam
Issue Type: Bug
Affects Versions: 1.1.6.GA
Environment: Any
Reporter: Mike Quilleash
Assigned To: Shane Bryzak
Fix For: 1.2.1.GA
In method:
Resources.getResourceAsStream(String resource)
FacesContext.getCurrentInstance() returns null during Seam startup. The exception is
silently caught and swallowed below. This is all fine, but when debugging my own code I
generally have break-on-certain-exceptions turned on, one of which is NPE. Would be nice
if this code could be modified to check if the current faces context is null and drop out
rather than generating the NPE which breaks into my debugger twice during Seam startup.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira