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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to