You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2005/01/08 01:17:01 UTC
cvs commit: jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/om/preference/impl PrefsPreferenceSetImpl.java
taylor 2005/01/07 16:17:01
Modified: components/registry/src/java/org/apache/jetspeed/om/preference/impl
PrefsPreferenceSetImpl.java
Log:
handle new case intro'd by entity not found handling where calling the size
on the prefs throws a IllegalStateException
In this case simply return 0 as the count
Revision Changes Path
1.4 +5 -0 jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/om/preference/impl/PrefsPreferenceSetImpl.java
Index: PrefsPreferenceSetImpl.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/om/preference/impl/PrefsPreferenceSetImpl.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- PrefsPreferenceSetImpl.java 29 Oct 2004 14:05:34 -0000 1.3
+++ PrefsPreferenceSetImpl.java 8 Jan 2005 00:17:01 -0000 1.4
@@ -241,6 +241,11 @@
{
return prefsRootNode.childrenNames().length;
}
+ catch (IllegalStateException ise)
+ {
+ // node has been removed
+ return 0;
+ }
catch (BackingStoreException e)
{
IllegalStateException ise = new IllegalStateException(e.toString());
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org