480600 : prevent NPE in AbstractProjectConfiguratorDelegate.addComponentExclusionPatterns

Change-Id: Idd3151966a238e3073d52d83579c87bdf7fd30f6
Signed-off-by: Fred Bricon <fbricon@gmail.com>
diff --git a/org.eclipse.m2e.wtp/src/org/eclipse/m2e/wtp/DomUtils.java b/org.eclipse.m2e.wtp/src/org/eclipse/m2e/wtp/DomUtils.java
index 10b3dff..5f0eb09 100644
--- a/org.eclipse.m2e.wtp/src/org/eclipse/m2e/wtp/DomUtils.java
+++ b/org.eclipse.m2e.wtp/src/org/eclipse/m2e/wtp/DomUtils.java
@@ -86,7 +86,7 @@
   public static String[] getPatternsAsArray(Xpp3Dom config, String patternParameterName) {
     if(config != null) {
       Xpp3Dom excl = config.getChild(patternParameterName);
-      if(excl != null) {
+      if(excl != null && excl.getValue() != null) {
         return org.eclipse.m2e.wtp.internal.StringUtils.tokenizeToStringArray(excl.getValue(), ","); //$NON-NLS-1$
       }
     }