Update of
/var/cvs/contributions/CMSContainer_Portlets/portlets-tagcloud/src/java/com/finalist/portlets/tagcloud/util
In directory
james.mmbase.org:/tmp/cvs-serv23018/portlets-tagcloud/src/java/com/finalist/portlets/tagcloud/util
Modified Files:
TagCloudUtil.java
Log Message:
CMSC-1066 Fixed the stacktrace caused by my fix of two days ago.
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-tagcloud/src/java/com/finalist/portlets/tagcloud/util
See also: http://www.mmbase.org/jira/browse/CMSC-1066
Index: TagCloudUtil.java
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer_Portlets/portlets-tagcloud/src/java/com/finalist/portlets/tagcloud/util/TagCloudUtil.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- TagCloudUtil.java 11 Nov 2008 15:16:31 -0000 1.7
+++ TagCloudUtil.java 13 Nov 2008 16:25:04 -0000 1.8
@@ -159,8 +159,8 @@
}
Collections.sort(tags, new TagNameComperator(orderby,
direction));
- while(tags.size() > max) {
- tags.remove(max);
+ while(max != null && tags.size() > max) {
+ tags.remove(max.intValue());
}
} catch (SQLException e) {
log.error("Failed to execute", e);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs