cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r490998 - /cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/caching/impl/CacheImpl.java
Date Fri, 29 Dec 2006 13:11:44 GMT
Author: cziegeler
Date: Fri Dec 29 05:11:43 2006
New Revision: 490998

URL: http://svn.apache.org/viewvc?view=rev&rev=490998
Log:
Prevent from potential NPE

Modified:
    cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/caching/impl/CacheImpl.java

Modified: cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/caching/impl/CacheImpl.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/caching/impl/CacheImpl.java?view=diff&rev=490998&r1=490997&r2=490998
==============================================================================
--- cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/caching/impl/CacheImpl.java
(original)
+++ cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-impl/src/main/java/org/apache/cocoon/caching/impl/CacheImpl.java
Fri Dec 29 05:11:43 2006
@@ -63,9 +63,11 @@
      * Disposable Interface
      */
     public void dispose() {
-        this.manager.release(this.store);
-        this.store = null;
-        this.manager = null;
+        if ( this.manager != null ) {
+            this.manager.release(this.store);
+            this.store = null;
+            this.manager = null;
+        }
     }
 
     /**



Mime
View raw message