geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hanhongf...@apache.org
Subject svn commit: r1051013 - /geronimo/devtools/eclipse-plugin/branches/2.1/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/internal/DependencyHelper.java
Date Mon, 20 Dec 2010 07:49:05 GMT
Author: hanhongfang
Date: Mon Dec 20 07:49:05 2010
New Revision: 1051013

URL: http://svn.apache.org/viewvc?rev=1051013&view=rev
Log:
GERONIMODEVTOOLS-689 NullPointerException when publishing with Geronimo Eclipse Plugin v2.1.7

Modified:
    geronimo/devtools/eclipse-plugin/branches/2.1/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/internal/DependencyHelper.java

Modified: geronimo/devtools/eclipse-plugin/branches/2.1/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/internal/DependencyHelper.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/internal/DependencyHelper.java?rev=1051013&r1=1051012&r2=1051013&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/internal/DependencyHelper.java
(original)
+++ geronimo/devtools/eclipse-plugin/branches/2.1/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/internal/DependencyHelper.java
Mon Dec 20 07:49:05 2010
@@ -438,8 +438,10 @@ public class DependencyHelper {
             }
         }
 
-        //put module's environment into the cache for next retrieve
-        environmentCache.put(module, environment);
+		// put module's environment into the cache for next retrieve
+		if (environment != null) {
+			environmentCache.put(module, environment);
+		}
         
         Trace.tracePoint("Exit ", "DependencyHelper.getEnvironment", environment);
         return environment;



Mime
View raw message