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

b314cc
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
b314cc
index 05baf87..2c62fb0 100644
b314cc
--- a/tycho-source-feature-plugin/src/main/java/org/eclipse/tycho/extras/sourcefeature/SourceFeatureMojo.java
b314cc
+++ b/tycho-source-feature-plugin/src/main/java/org/eclipse/tycho/extras/sourcefeature/SourceFeatureMojo.java
b314cc
@@ -515,15 +515,19 @@ public class SourceFeatureMojo extends AbstractMojo {
b314cc
     }
b314cc
 
b314cc
     private String getAttribute(PlexusConfiguration dom, String attrName) {
b314cc
-        String attr = dom.getAttribute(attrName);
b314cc
-        if (attr == null) {
b314cc
-            return null;
b314cc
-        }
b314cc
-        attr = attr.trim();
b314cc
-        if (attr.length() == 0) {
b314cc
+        try {
b314cc
+            String attr = dom.getAttribute(attrName);
b314cc
+            if (attr == null) {
b314cc
+                return null;
b314cc
+            }
b314cc
+            attr = attr.trim();
b314cc
+            if (attr.length() == 0) {
b314cc
+                return null;
b314cc
+            }
b314cc
+            return attr;
b314cc
+        } catch (Exception e) {
b314cc
             return null;
b314cc
         }
b314cc
-        return attr;
b314cc
     }
b314cc
 
b314cc
 }