[126743] fix for NPE in remove ref for nonexisting
diff --git a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/operation/RemoveReferenceComponentOperation.java b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/operation/RemoveReferenceComponentOperation.java
index ccfa7c2..098e77b 100644
--- a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/operation/RemoveReferenceComponentOperation.java
+++ b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/operation/RemoveReferenceComponentOperation.java
@@ -55,6 +55,8 @@
 
 		for (int i = 0; i < modList.size(); i++) {
 			IVirtualComponent comp = (IVirtualComponent) modList.get(i);
+			if (comp==null || sourceComp==null)
+				continue;
 			IVirtualReference ref = sourceComp.getReference(comp.getName());
 			if( ref != null && ref.getReferencedComponent() != null && ref.getReferencedComponent().isBinary()){
 				removeRefereneceInComponent(sourceComp, ref);