Author: mwringe
Date: 2010-10-20 15:05:57 -0400 (Wed, 20 Oct 2010)
New Revision: 4748
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/processors/MimeResponseProcessor.java
Log:
GTNWSRP-105: don't try and process empty markup for rewriting. URLTools.replaceURLsBy
doesn't support passing empty or null strings.
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/processors/MimeResponseProcessor.java
===================================================================
---
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/processors/MimeResponseProcessor.java 2010-10-20
14:08:46 UTC (rev 4747)
+++
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/processors/MimeResponseProcessor.java 2010-10-20
19:05:57 UTC (rev 4748)
@@ -65,8 +65,11 @@
protected String processFragmentString(String renderString)
{
// String result = renderString.replaceAll(namespace,
WSRPRewritingConstants.WSRP_REWRITE);
-
- return URLTools.replaceURLsBy(renderString, new
WSRPUtils.AbsoluteURLReplacementGenerator(ServletAccess.getRequest()));
+ if (renderString != null && !renderString.isEmpty())
+ {
+ return URLTools.replaceURLsBy(renderString, new
WSRPUtils.AbsoluteURLReplacementGenerator(ServletAccess.getRequest()));
+ }
+ return renderString;
}
public Response processResponse(PortletInvocationResponse response)
Show replies by date