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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27080

RequestUtils.forwardURL causes null pointer exception

           Summary: RequestUtils.forwardURL causes null pointer exception
           Product: Struts
           Version: 1.1 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Utilities
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I am using the Velocity StrutsLink Tool and setForward causes a npe.  On close
investigation it is caused by a npe in RequestUtils.forwardURL.

// Calculate a context relative path for this ForwardConfig
ModuleConfig moduleConfig = (ModuleConfig) request.getAttribute(
Globals.MODULE_KEY );
String forwardPattern = moduleConfig.getControllerConfig().getForwardPattern();

The moduleConfig assignment is returning null and this causes the
getControllerConfig() to npe.

The application is configured as a default (i.e /) and does not have any Modules
configured.

Geoff Drake

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to