You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2015/02/25 10:04:05 UTC

[jira] [Updated] (KARAF-3530) Missing Null checking for in InstallKars mojo

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

Jean-Baptiste Onofré updated KARAF-3530:
----------------------------------------
    Fix Version/s: 3.0.4

> 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)