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/06/12 17:55:00 UTC

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

    [ https://issues.apache.org/jira/browse/KARAF-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14583595#comment-14583595 ] 

Jean-Baptiste Onofré commented on KARAF-3530:
---------------------------------------------

Fixed on karaf-3.0.x: https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=commitdiff;h=4ae2a896fa3b53fc4abd75dae26e0c1a1faab4d9

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