portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r345160 - /portals/jetspeed-2/trunk/applications/pam/src/java/org/apache/jetspeed/portlets/selector/PortletIterator.java
Date Thu, 17 Nov 2005 00:54:22 GMT
Author: ate
Date: Wed Nov 16 16:54:18 2005
New Revision: 345160

URL: http://svn.apache.org/viewcvs?rev=345160&view=rev
Log:
NPE fix provided by Chris Schaefer

Modified:
    portals/jetspeed-2/trunk/applications/pam/src/java/org/apache/jetspeed/portlets/selector/PortletIterator.java

Modified: portals/jetspeed-2/trunk/applications/pam/src/java/org/apache/jetspeed/portlets/selector/PortletIterator.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/applications/pam/src/java/org/apache/jetspeed/portlets/selector/PortletIterator.java?rev=345160&r1=345159&r2=345160&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/applications/pam/src/java/org/apache/jetspeed/portlets/selector/PortletIterator.java
(original)
+++ portals/jetspeed-2/trunk/applications/pam/src/java/org/apache/jetspeed/portlets/selector/PortletIterator.java
Wed Nov 16 16:54:18 2005
@@ -57,8 +57,11 @@
         {
             order = 1;            
         }
-        order = name1.compareTo(name2);
-            
+        else
+        {
+            order = name1.compareTo(name2);
+        }
+        
         if (!getAscendingOrder())
         {
             order = 0 - order;



---------------------------------------------------------------------
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