Skip to content

Commit dbbaf03

Browse files
author
Hong Fang Han
committed
GERONIMODEVTOOLS-689 NullPointerException when publishing with Geronimo Eclipse Plugin v2.1.7
git-svn-id: https://svn.apache.org/repos/asf/geronimo/devtools/eclipse-plugin/branches/2.1@1051013 13f79535-47bb-0310-9956-ffa450edef68
1 parent 4be844f commit dbbaf03

File tree

1 file changed

+4
-2
lines changed
  • plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/internal

1 file changed

+4
-2
lines changed

plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/internal/DependencyHelper.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,10 @@ else if (GeronimoUtils.isRARModule(module)) {
438438
}
439439
}
440440

441-
//put module's environment into the cache for next retrieve
442-
environmentCache.put(module, environment);
441+
// put module's environment into the cache for next retrieve
442+
if (environment != null) {
443+
environmentCache.put(module, environment);
444+
}
443445

444446
Trace.tracePoint("Exit ", "DependencyHelper.getEnvironment", environment);
445447
return environment;

0 commit comments

Comments
 (0)