geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yunfen...@apache.org
Subject svn commit: r680276 - /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/sections/WebContainerSection.java
Date Mon, 28 Jul 2008 07:52:44 GMT
Author: yunfengma
Date: Mon Jul 28 00:52:43 2008
New Revision: 680276

URL: http://svn.apache.org/viewvc?rev=680276&view=rev
Log:
GERONIMODEVTOOLS-452  Selecting 'Specify as Gbean Pattern' leads a NPE

Modified:
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/sections/WebContainerSection.java

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/sections/WebContainerSection.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/sections/WebContainerSection.java?rev=680276&r1=680275&r2=680276&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/sections/WebContainerSection.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/sections/WebContainerSection.java
Mon Jul 28 00:52:43 2008
@@ -190,7 +190,9 @@
         specifyAsPattern.addSelectionListener(new SelectionAdapter() {
             public void widgetSelected(SelectionEvent e) {
                 if (specifyAsPattern.getSelection()) {
-                	plan.getWebContainer().setGbeanLink (null);
+                	if (plan.getWebContainer() != null) {
+                	    plan.getWebContainer().setGbeanLink (null);
+                	}
                     if (group.getText().length() > 0) {
                         getPattern().setGroupId(group.getText());
                     }



Mime
View raw message