geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r769512 - /geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/BlueprintContextImpl.java
Date Tue, 28 Apr 2009 19:46:03 GMT
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();



Mime
View raw message