Skip to content

Commit be8ddbf

Browse files
author
Ted Kirby
committed
GERONIMODEVTOOLS-517 Can't delete project from defined geronimo server
Thanks for the patch, Delos! git-svn-id: https://svn.apache.org/repos/asf/geronimo/devtools/eclipse-plugin/branches/2.0.1@697175 13f79535-47bb-0310-9956-ffa450edef68
1 parent a5ab294 commit be8ddbf

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerDelegate.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,15 @@ abstract public class GeronimoServerDelegate extends ServerDelegate implements I
8686
* org.eclipse.wst.server.core.IModule[])
8787
*/
8888
public IStatus canModifyModules(IModule[] add, IModule[] remove) {
89-
for (int i = 0; i < add.length; i++) {
90-
IModule module = add[i];
91-
if (module.getProject() != null) {
92-
IStatus status = FacetUtil.verifyFacets(module.getProject(),
93-
getServer());
94-
if (status != null && !status.isOK())
95-
return status;
89+
if (add != null) {
90+
for (int i = 0; i < add.length; i++) {
91+
IModule module = add[i];
92+
if (module.getProject() != null) {
93+
IStatus status = FacetUtil.verifyFacets(
94+
module.getProject(), getServer());
95+
if (status != null && !status.isOK())
96+
return status;
97+
}
9698
}
9799
}
98100
return Status.OK_STATUS;

0 commit comments

Comments
 (0)