You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Ed Warnicke (JIRA)" <ji...@apache.org> on 2015/02/13 19:33:11 UTC
[jira] [Created] (KARAF-3530) Missing Null checking for
in InstallKars mojo
Ed Warnicke created KARAF-3530:
----------------------------------
Summary: Missing Null checking for <bootFeatures> in InstallKars mojo
Key: KARAF-3530
URL: https://issues.apache.org/jira/browse/KARAF-3530
Project: Karaf
Issue Type: Bug
Components: karaf-tooling
Affects Versions: 3.0.3
Reporter: Ed Warnicke
If I have:
<bootFeatures>
<feature>standard</feature>
<feature>${karaf.localFeature}</feature>
</bootFeatures>
And ${karaf.localFeature} is empty, then in InstallKarsMojo.execute() line 202
There is no null check before:
if (!resolveFeature(features.keySet(), bootFeature)) {
which results in an NPE... Would suggest
leniency for null features and simply skipping them.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)