portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlest...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/prefs/src/java/org/apache/jetspeed/prefs/impl PreferencesImpl.java
Date Sat, 22 May 2004 21:28:58 GMT
dlestrat    2004/05/22 14:28:58

  Modified:    components/prefs/src/java/org/apache/jetspeed/prefs/impl
                        PreferencesImpl.java
  Log:
  Minor logging changes to PreferencesImpl.
  
  Revision  Changes    Path
  1.9       +7 -2      jakarta-jetspeed-2/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PreferencesImpl.java
  
  Index: PreferencesImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/prefs/src/java/org/apache/jetspeed/prefs/impl/PreferencesImpl.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- PreferencesImpl.java	5 May 2004 18:32:43 -0000	1.8
  +++ PreferencesImpl.java	22 May 2004 21:28:58 -0000	1.9
  @@ -392,7 +392,7 @@
               }
               else
               {
  -                log.error("Could not retrieve property values for node " + nodeObj.getFullPath());
  +                log.error("Could not retrieve property keys for node " + nodeObj.getFullPath());
               }
           }
           return (String[]) propertyNames.toArray(new String[0]);
  @@ -419,6 +419,11 @@
           Node nodeObj = (Node) nodeResult[NODE];
           Collection nodeKeys = nodeObj.getNodeKeys();
           Collection properties = nodeObj.getNodeProperties();
  +        if (null == properties)
  +        {
  +            log.error("Could not retrieve node property: [key: " + key + ", value:" + value
+ "]");
  +            return;
  +        }
           ArrayList newProperties = new ArrayList(properties.size() + 1);
           boolean foundProp = false;
           boolean foundKey = false;
  @@ -466,7 +471,7 @@
           PersistenceStore store = getPersistenceStore();
           if (log.isDebugEnabled())
               log.debug("Updated properties: " + newProperties.size());
  -        // What going on:
  +        // What's going on.
           if (newProperties.size() > 0)
               log.debug("Properties: " + ((Property) newProperties.get(0)).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