You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ga...@apache.org on 2009/04/28 21:46:03 UTC

svn commit: r769512 - /geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/BlueprintContextImpl.java

Author: gawor
Date: Tue Apr 28 19:46:02 2009
New Revision: 769512

URL: http://svn.apache.org/viewvc?rev=769512&view=rev
Log:
check for null, objectGraph might not be created yet

Modified:
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/BlueprintContextImpl.java

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/BlueprintContextImpl.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/BlueprintContextImpl.java?rev=769512&r1=769511&r2=769512&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/BlueprintContextImpl.java (original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/BlueprintContextImpl.java Tue Apr 28 19:46:02 2009
@@ -359,7 +359,9 @@
     }
 
     private void destroyComponents() {
-        ((BlueprintObjectRepository)objectGraph.getRepository()).destroy();
+        if (objectGraph != null) {
+            ((BlueprintObjectRepository)objectGraph.getRepository()).destroy();
+        }
         
         Map<String, Destroyable> destroyables = new HashMap<String, Destroyable>(this.destroyables);
         this.destroyables.clear();