[Yanel-commits] rev 33134 - public/yanel/trunk/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources

michi at wyona.com michi at wyona.com
Mon Mar 10 09:57:05 CET 2008


Author: michi
Date: 2008-03-10 09:57:04 +0100 (Mon, 10 Mar 2008)
New Revision: 33134

Modified:
   public/yanel/trunk/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/DataRepoSitetreeResource.java
Log:
catch null pointer

Modified: public/yanel/trunk/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/DataRepoSitetreeResource.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/DataRepoSitetreeResource.java	2008-03-10 08:35:15 UTC (rev 33133)
+++ public/yanel/trunk/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/DataRepoSitetreeResource.java	2008-03-10 08:57:04 UTC (rev 33134)
@@ -123,6 +123,7 @@
         }
         */
 
+        if (node != null) {
         if (node.isCollection()) {
             sb.append("<collection path=\"" + path + "\" name=\" " + node.getName() + "\">");
             Node[] children = node.getChildren();
@@ -139,6 +140,9 @@
         } else {
             sb.append("<resource path=\"" + path + "\" name=\"" + node.getName() + "\"/>");
         }
+        } else {
+            sb.append("<exception>node is null for path: " + path + "</exception>");
+        }
         return sb.toString();
     }
 }



More information about the Yanel-commits mailing list