karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Resolved] (KARAF-3530) Missing Null checking for <bootFeatures> in InstallKars mojo
Date Fri, 12 Jun 2015 15:59:00 GMT

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

Mime
View raw message