jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tri...@apache.org
Subject svn commit: r190367 - /incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/observation/EventStateCollection.java
Date Mon, 13 Jun 2005 08:01:15 GMT
Author: tripod
Date: Mon Jun 13 01:01:14 2005
New Revision: 190367

URL: http://svn.apache.org/viewcvs?rev=190367&view=rev
Log:
- adding better handling for unexpected NPE

Modified:
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/observation/EventStateCollection.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/observation/EventStateCollection.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/observation/EventStateCollection.java?rev=190367&r1=190366&r2=190367&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/observation/EventStateCollection.java
(original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/observation/EventStateCollection.java
Mon Jun 13 01:01:14 2005
@@ -378,7 +378,8 @@
             throws ItemStateException {
         try {
             return session.getNodeTypeManager().getNodeType(node.getNodeTypeName());
-        } catch (NoSuchNodeTypeException e) {
+        } catch (Exception e) {
+            // also catch eventual runtime exceptions here
             // should never happen actually
             String msg = "Item " + node.getId() + " has unknown node type: " + node.getNodeTypeName();
             log.error(msg);



Mime
View raw message