You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/12/08 08:26:54 UTC

DO NOT REPLY [Bug 37835] New: - ClayAmalgm throws NPE on resource not found

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37835>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37835

           Summary: ClayAmalgm throws NPE on resource not found
           Product: Struts
           Version: Nightly Build
          Platform: All
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Shale
        AssignedTo: dev@struts.apache.org
        ReportedBy: hermod.opstvedt@dnb.no


In the method clayImport, a nullpointer exception is thrown if the imported
resource for any reason can not be loaded, meaning the inputstream is null.
There should be a check for this in the try/catch block similar to this:
        } catch (NullpointerException npe) {
            throw new RuntimeException(messages.getMessage("resource.notfound",
new Object[] {"url", "clayImport"}));

Or the check should be done prior to accessing the inputstream, and the throw an
exception.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org