incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1436216 - /sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java
Date Mon, 21 Jan 2013 07:46:43 GMT
Author: cziegeler
Date: Mon Jan 21 07:46:43 2013
New Revision: 1436216

URL: http://svn.apache.org/viewvc?rev=1436216&view=rev
Log:
SLING-2709 :  JcrResourceProvider.delete throws PersistenceException 

Modified:
    sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java

Modified: sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java?rev=1436216&r1=1436215&r2=1436216&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java
(original)
+++ sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java
Mon Jan 21 07:46:43 2013
@@ -432,8 +432,9 @@ public class JcrResourceProvider
         try {
             if ( session.itemExists(path) ) {
                 session.getItem(path).remove();
+            } else {
+                throw new PersistenceException("Unable to delete item at " + path, null,
path, null);
             }
-            throw new PersistenceException("Unable to delete item at " + path, null, path,
null);
         } catch (final RepositoryException e) {
             throw new PersistenceException("Unable to delete item at " + path, e, path, null);
         }



Mime
View raw message