portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r601037 - /portals/jetspeed-2/branches/JETSPEED-2.1.3/applications/gems/src/java/org/apache/portals/gems/file/FilePortlet.java
Date Tue, 04 Dec 2007 18:50:56 GMT
Author: taylor
Date: Tue Dec  4 10:50:55 2007
New Revision: 601037

URL: http://svn.apache.org/viewvc?rev=601037&view=rev
Log:
was seeing NPE's occasionally

Modified:
    portals/jetspeed-2/branches/JETSPEED-2.1.3/applications/gems/src/java/org/apache/portals/gems/file/FilePortlet.java

Modified: portals/jetspeed-2/branches/JETSPEED-2.1.3/applications/gems/src/java/org/apache/portals/gems/file/FilePortlet.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/branches/JETSPEED-2.1.3/applications/gems/src/java/org/apache/portals/gems/file/FilePortlet.java?rev=601037&r1=601036&r2=601037&view=diff
==============================================================================
--- portals/jetspeed-2/branches/JETSPEED-2.1.3/applications/gems/src/java/org/apache/portals/gems/file/FilePortlet.java
(original)
+++ portals/jetspeed-2/branches/JETSPEED-2.1.3/applications/gems/src/java/org/apache/portals/gems/file/FilePortlet.java
Tue Dec  4 10:50:55 2007
@@ -154,7 +154,11 @@
                 PortletPreferences prefs = request.getPreferences();
                 path = prefs.getValue(PARAM_SOURCE_FILE, this.defaultSourceFile);
             }
-
+            else
+            {
+                if (path.endsWith(".css"))
+                    path = null;
+            }
             if (null == path && this.defaultSourceBasePath != null)
             {
                 String filepath = request.getParameter(PARAM_SOURCE_FILE_PATH);



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message