481970 : fix NPE in PackagingConfiguration.isPackaged
Change-Id: Ifff7312339878435c8e30c537507e2c65fcbbf0e
Signed-off-by: Fred Bricon <fbricon@gmail.com>
diff --git a/org.eclipse.m2e.wtp/src/org/eclipse/m2e/wtp/PackagingConfiguration.java b/org.eclipse.m2e.wtp/src/org/eclipse/m2e/wtp/PackagingConfiguration.java
index e657cc8..6cf2e29 100644
--- a/org.eclipse.m2e.wtp/src/org/eclipse/m2e/wtp/PackagingConfiguration.java
+++ b/org.eclipse.m2e.wtp/src/org/eclipse/m2e/wtp/PackagingConfiguration.java
@@ -46,7 +46,7 @@
return false;
}
virtualPath = toPortablePath(virtualPath);
- if (packagingIncludes != null) {
+ if (packagingExcludes != null) {
for(String excl : packagingExcludes) {
if(matches(excl, virtualPath)) {
//stop here already, since exclusions have precedence over inclusions