[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1095) Anticipate NPE in Resource loading

Mike Quilleash (JIRA) jira-events at lists.jboss.org
Fri Mar 23 07:29:48 EDT 2007

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

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


More information about the seam-issues mailing list