jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r464832 - /jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/util/ReferenceChangeTracker.java
Date Tue, 17 Oct 2006 06:51:03 GMT
Author: angela
Date: Mon Oct 16 23:51:01 2006
New Revision: 464832

URL: http://svn.apache.org/viewvc?view=rev&rev=464832
Log:
work in progress

- check if entry for old reference value exists

Modified:
    jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/util/ReferenceChangeTracker.java

Modified: jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/util/ReferenceChangeTracker.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/util/ReferenceChangeTracker.java?view=diff&rev=464832&r1=464831&r2=464832
==============================================================================
--- jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/util/ReferenceChangeTracker.java
(original)
+++ jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/util/ReferenceChangeTracker.java
Mon Oct 16 23:51:01 2006
@@ -88,8 +88,10 @@
         if (oldReference.getType() == PropertyType.REFERENCE) {
             try {
                 String oldValue = oldReference.getString();
-                String newValue = uuidMap.get(oldValue).toString();
-                remapped = QValue.create(newValue, PropertyType.REFERENCE);
+                if (uuidMap.containsKey(oldValue)) {
+                    String newValue = uuidMap.get(oldValue).toString();
+                    remapped = QValue.create(newValue, PropertyType.REFERENCE);
+                }
             } catch (RepositoryException e) {
                 log.error("Unexpected error while creating internal value.", e);
             }



Mime
View raw message