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

Alexander Falb updated DELTASPIKE-1272:
---------------------------------------
    Affects Version/s: 1.8.0

> ConfigResolver asList breaks if no value is found
> -------------------------------------------------
>
>                 Key: DELTASPIKE-1272
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-1272
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: Configuration
>    Affects Versions: 1.8.0
>            Reporter: Alexander Falb
>         Attachments: deltaspike.patch
>
>
> When calling 
> {code:java}
> ConfigResolver.resolve("notexisting").as(Integer.class).asList().getValue();
> {code}
> a NullPointerException is thrown:
> {code}
> java.lang.NullPointerException
>     at 
> org.apache.deltaspike.core.api.config.ConfigResolver$PropertyBuilder.splitAndConvertListValue(ConfigResolver.java:1020)
>     at 
> org.apache.deltaspike.core.api.config.ConfigResolver$PropertyBuilder.getValue(ConfigResolver.java:988)
> {code}
> I created and attached a patch (including a few unit tests) to fix this 
> issue. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to