Added some logging to PortletUrlRenderer - when call an action that is not in package that extends struts-portlet-default the call to urlComponent.getPortetUrlType() does return null instead of none.
So the if statement: if (PortletActionContext.getPortletContext() == null || "none".equalsIgnoreCase(urlComponent.getPortletUrlType())) { servletRenderer.renderUrl(writer, urlComponent); return; } is false. However, the String result value is never set in the rest of the renderUrl method so how the null pointer exception gets thrown. I tried adding to the if statement a check for urlComponent.getPortletUrlType() == null but that broke several unit tests. -- View this message in context: http://struts.1045723.n5.nabble.com/Struts-Portlet-Plugin-2-3-3-Breaks-Using-Struts-App-As-Both-Portlet-and-Standalone-Web-App-tp5686113p5686780.html Sent from the Struts - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org