roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eli...@apache.org
Subject svn commit: r470171 - /incubator/roller/trunk/src/org/apache/roller/ui/rendering/servlets/PreviewServlet.java
Date Thu, 02 Nov 2006 01:30:12 GMT
Author: eliast
Date: Wed Nov  1 17:30:11 2006
New Revision: 470171

URL: http://svn.apache.org/viewvc?view=rev&rev=470171
Log:
- Avoiding NPE in WebSphere.

Modified:
    incubator/roller/trunk/src/org/apache/roller/ui/rendering/servlets/PreviewServlet.java

Modified: incubator/roller/trunk/src/org/apache/roller/ui/rendering/servlets/PreviewServlet.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/ui/rendering/servlets/PreviewServlet.java?view=diff&rev=470171&r1=470170&r2=470171
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/ui/rendering/servlets/PreviewServlet.java
(original)
+++ incubator/roller/trunk/src/org/apache/roller/ui/rendering/servlets/PreviewServlet.java
Wed Nov  1 17:30:11 2006
@@ -135,7 +135,7 @@
         
         // set the content type
         String pageLink = previewRequest.getWeblogPageName();
-        String mimeType = RollerContext.getServletContext().getMimeType(pageLink);
+        String mimeType = pageLink !=  null ? RollerContext.getServletContext().getMimeType(pageLink)
: null;        
         String contentType = "text/html; charset=utf-8";
         if(mimeType != null) {
             // we found a match ... set the content type



Mime
View raw message