[ 
https://issues.apache.org/jira/browse/KARAF-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jean-Baptiste Onofré resolved KARAF-3530.
-----------------------------------------
    Resolution: Fixed

> 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
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 3.0.4
>
>
> 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)

Reply via email to