portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/om/preference/impl PrefsPreferenceSetImpl.java
Date Mon, 10 Jan 2005 18:32:06 GMT
taylor      2005/01/10 10:32:06

  Modified:    components/registry/src/java/org/apache/jetspeed/om/preference/impl
                        PrefsPreferenceSetImpl.java
  Log:
  handle case where calling get on the prefs and pref throws a IllegalStateException
  because the pref was removed, just return null to indicate its not there
  
  Revision  Changes    Path
  1.6       +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.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- PrefsPreferenceSetImpl.java	8 Jan 2005 20:29:08 -0000	1.5
  +++ PrefsPreferenceSetImpl.java	10 Jan 2005 18:32:06 -0000	1.6
  @@ -288,6 +288,11 @@
                   childrenNames = prefsRootNode.childrenNames();
                   pointer = 0;
               }
  +            catch (IllegalStateException ise)
  +            {
  +                // node has been removed
  +                childrenNames = new String[0];
  +            }                    
               catch (BackingStoreException e)
               {
                   String msg = "Preference backing store failed: " + e.toString();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message