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 Sat, 08 Jan 2005 20:29:08 GMT
taylor      2005/01/08 12:29:08

  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.5       +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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- PrefsPreferenceSetImpl.java	8 Jan 2005 00:17:01 -0000	1.4
  +++ PrefsPreferenceSetImpl.java	8 Jan 2005 20:29:08 -0000	1.5
  @@ -113,6 +113,11 @@
                   return null;
               }
           }
  +        catch (IllegalStateException ise)
  +        {
  +            // node has been removed
  +            return null;
  +        }        
           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