cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r1092392 - /cocoon/cocoon3/trunk/cocoon-rest/src/main/java/org/apache/cocoon/rest/controller/response/RedirectResponse.java
Date Thu, 14 Apr 2011 16:47:52 GMT
Author: thorsten
Date: Thu Apr 14 16:47:52 2011
New Revision: 1092392

URL: http://svn.apache.org/viewvc?rev=1092392&view=rev
Log:
Fixing null pointer exception which will be thrown if return null from the springrest bean

Modified:
    cocoon/cocoon3/trunk/cocoon-rest/src/main/java/org/apache/cocoon/rest/controller/response/RedirectResponse.java

Modified: cocoon/cocoon3/trunk/cocoon-rest/src/main/java/org/apache/cocoon/rest/controller/response/RedirectResponse.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-rest/src/main/java/org/apache/cocoon/rest/controller/response/RedirectResponse.java?rev=1092392&r1=1092391&r2=1092392&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-rest/src/main/java/org/apache/cocoon/rest/controller/response/RedirectResponse.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-rest/src/main/java/org/apache/cocoon/rest/controller/response/RedirectResponse.java
Thu Apr 14 16:47:52 2011
@@ -37,7 +37,7 @@ public class RedirectResponse implements
         HttpServletResponse response = HttpContextHelper.getResponse(inputParameters);
         response.sendRedirect(this.location);
 
-        return null;
+        return new RestResponseMetaData();
     }
 
     public void execute(OutputStream outputStream) throws Exception {



Mime
View raw message