Projects
openEuler:24.03:SP1:Everything
tycho-extras
_service:tar_scm:tycho-extras-fix-build.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:tycho-extras-fix-build.patch of Package tycho-extras
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 index 05baf87..2c62fb0 100644 --- 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 @@ -549,15 +549,19 @@ public class SourceFeatureMojo extends AbstractMojo { } private String getAttribute(PlexusConfiguration dom, String attrName) { - String attr = dom.getAttribute(attrName); - if (attr == null) { - return null; - } - attr = attr.trim(); - if (attr.length() == 0) { + try { + String attr = dom.getAttribute(attrName); + if (attr == null) { + return null; + } + attr = attr.trim(); + if (attr.length() == 0) { + return null; + } + return attr; + } catch (Exception e) { return null; } - return attr; } }
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2