NPE in ScarabModule.compareTo

Mick Semb Wever <[email protected]>
Newsgroups gmane.comp.java.scarab.devel
Message-ID <[email protected]>
Against trunk i get the following (on first, and any, page of scarab):

...
Caused by: java.lang.NullPointerException
	at org.tigris.scarab.om.ScarabModule.compareTo(ScarabModule.java:954)
	at java.util.TreeMap.put(TreeMap.java:545)
	at java.util.TreeSet.add(TreeSet.java:238)
	at java.util.AbstractCollection.addAll(AbstractCollection.java:305)
	at java.util.TreeSet.addAll(TreeSet.java:295)
	at org.apache.fulcrum.security.util.GroupSet.add(GroupSet.java:126)
	at org.apache.fulcrum.security.util.GroupSet.<init>(GroupSet.java:100)
	at org.tigris.scarab.services.security.ScarabDBSecurityService.getGroups(ScarabDBSecurityService.java:101)
	at org.apache.fulcrum.security.BaseSecurityService.getAllGroups(BaseSecurityService.java:968)
	at org.apache.fulcrum.security.impl.db.DBSecurityService.getACL(DBSecurityService.java:155)
	... 48 more


How is null entries getting into the groups list returned by
ScarabModulePeer.doSelect(criteria);
that is called in ScarabDBSecurityService.getGroups(..)

Bizarre that this happened to me all of a sudden.
My only explanation is that there exists no names for any of the 
turbine groups as defined in the TURBINE_GROUP table.

~mck


-- 
"Some people have told me they don't think a fat penguin really embodies 
the
grace of Linux, which just tells me they have never seen an angry penguin
charging at them in excess of 100mph." Linus Torvalds
| www.semb.wever.org | www.sesat.no | www.sesam.no |
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.