jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r433623 - /jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/NodeState.java
Date Tue, 22 Aug 2006 13:23:43 GMT
Author: mreutegg
Date: Tue Aug 22 06:23:42 2006
New Revision: 433623

URL: http://svn.apache.org/viewvc?rev=433623&view=rev
Log:
NodeState.hasPropertyName() throws NullPointerException if property does not exist.

Modified:
    jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/NodeState.java

Modified: jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/NodeState.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/NodeState.java?rev=433623&r1=433622&r2=433623&view=diff
==============================================================================
--- jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/NodeState.java
(original)
+++ jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/NodeState.java
Tue Aug 22 06:23:42 2006
@@ -668,6 +668,9 @@
      */
     public synchronized boolean hasPropertyName(QName propName) {
         PropertyReference ref = (PropertyReference) properties.get(propName);
+        if (ref == null) {
+            return false;
+        }
         if (ref.isResolved()) {
             try {
                 return ref.getPropertyState().isValid();



Mime
View raw message