Blame SOURCES/tycho-extras-fix-build.patch

4a48ad
diff --git a/tycho-source-feature-plugin/src/main/java/org/eclipse/tycho/extras/sourcefeature/SourceFeatureMojo.java b/tycho-source-feature-plugin/src/main/java/org/eclipse/tycho/extras/sourcefeature/SourceFeatureMojo.java
4a48ad
index 05baf87..2c62fb0 100644
4a48ad
--- a/tycho-source-feature-plugin/src/main/java/org/eclipse/tycho/extras/sourcefeature/SourceFeatureMojo.java
4a48ad
+++ b/tycho-source-feature-plugin/src/main/java/org/eclipse/tycho/extras/sourcefeature/SourceFeatureMojo.java
4a48ad
@@ -551,15 +551,19 @@ public class SourceFeatureMojo extends AbstractMojo {
4a48ad
     }
4a48ad
 
4a48ad
     private String getAttribute(PlexusConfiguration dom, String attrName) {
4a48ad
-        String attr = dom.getAttribute(attrName);
4a48ad
-        if (attr == null) {
4a48ad
-            return null;
4a48ad
-        }
4a48ad
-        attr = attr.trim();
4a48ad
-        if (attr.length() == 0) {
4a48ad
+        try {
4a48ad
+            String attr = dom.getAttribute(attrName);
4a48ad
+            if (attr == null) {
4a48ad
+                return null;
4a48ad
+            }
4a48ad
+            attr = attr.trim();
4a48ad
+            if (attr.length() == 0) {
4a48ad
+                return null;
4a48ad
+            }
4a48ad
+            return attr;
4a48ad
+        } catch (Exception e) {
4a48ad
             return null;
4a48ad
         }
4a48ad
-        return attr;
4a48ad
     }
4a48ad
 
4a48ad
 }