[ http://issues.apache.org/struts/browse/SHALE-19?page=all ]
Craig McClanahan moved STR-2627 to SHALE-19:
--------------------------------------------
Project: Shale (was: Struts Action 1)
Key: SHALE-19 (was: STR-2627)
Component: (was: Shale)
Version: (was: Nightly Build)
Assign To: (was: Struts Developer Mailing List)
> [shale] State implementation classes cause a null pointer exception in
> initialisation when logging set to debug
> ---------------------------------------------------------------------------------------------------------------
>
> Key: SHALE-19
> URL: http://issues.apache.org/struts/browse/SHALE-19
> Project: Shale
> Type: Bug
> Environment: Operating System: other
> Platform: Other
> Reporter: Ronald Holshausen
>
> If the logging level is set to debug, the bean utils populate method calls
> the toString() methods on the
> state classes during parsing of the dialog configuration file by the
> digester. This is causes a null
> pointer exception as the toString() methods call getDialog().getName() and
> the initialisation of the
> web application to fail.
>
> Affected classes: ActionStateImpl, ViewStateImpl, EndStateImpl
>
> The fix is to add a check for null values on the call to getDialog(), i.e.:
>
> public String toString() {
>
> return "ActionState[dialog=" + ((getDialog() == null) ? "null" :
> getDialog().getName()) +
> ",name=" + getName() +
> ",method=" + getMethod() +
> "]";
>
> }
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]