portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Schaefer <ch...@bluesunrise.com>
Subject patch for null pointer exception in PortletSelector sort
Date Tue, 15 Nov 2005 21:43:36 GMT
Index: applications/pam/src/java/org/apache/jetspeed/portlets/ 
selector/PortletIterator.java
===================================================================
--- applications/pam/src/java/org/apache/jetspeed/portlets/selector/ 
PortletIterator.java	(revision 344384)
+++ applications/pam/src/java/org/apache/jetspeed/portlets/selector/ 
PortletIterator.java	(working copy)
@@ -56,9 +56,9 @@
          else if (name2 == null)
          {
              order = 1;
+        } else {
+            order = name1.compareTo(name2);
          }
-        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