You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "Craig McClanahan (JIRA)" <ji...@apache.org> on 2006/04/26 08:14:50 UTC
[jira] Moved: (SHALE-49) ClayAmalgm throws NPE on resource not
found
[ http://issues.apache.org/struts/browse/SHALE-49?page=all ]
Craig McClanahan moved STR-2686 to SHALE-49:
--------------------------------------------
Project: Shale (was: Struts Action 1)
Key: SHALE-49 (was: STR-2686)
Component: (was: Shale)
Version: (was: Nightly Build)
Assign To: (was: Struts Developer Mailing List)
> ClayAmalgm throws NPE on resource not found
> -------------------------------------------
>
> Key: SHALE-49
> URL: http://issues.apache.org/struts/browse/SHALE-49
> Project: Shale
> Type: Bug
> Environment: Operating System: other
> Platform: All
> Reporter: Hermod Opstvedt
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org