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=37384>. 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=37384 Summary: [shale] State implementation classes cause a null pointer exception in initialisation when logging set to debug Product: Struts Version: Nightly Build Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Shale AssignedTo: dev@struts.apache.org ReportedBy: [EMAIL PROTECTED] 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() + "]"; } -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]