File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -86,13 +86,15 @@ abstract public class GeronimoServerDelegate extends ServerDelegate implements I
86
86
* org.eclipse.wst.server.core.IModule[])
87
87
*/
88
88
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
+ }
96
98
}
97
99
}
98
100
return Status .OK_STATUS ;
You can’t perform that action at this time.
0 commit comments