You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/11/27 10:10:00 UTC

[jira] [Commented] (DELTASPIKE-1272) ConfigResolver asList breaks if no value is found

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

ASF subversion and git services commented on DELTASPIKE-1272:
-------------------------------------------------------------

Commit 1174922e4fa438948bada8c9afe86952933fafc2 in deltaspike's branch refs/heads/master from [~elexx]
[ https://git-wip-us.apache.org/repos/asf?p=deltaspike.git;h=1174922 ]

DELTASPIKE-1272 / 1287: make defaultValues work

Signed-off-by: Mark Struberg <st...@apache.org>


> 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
>            Assignee: Mark Struberg
>             Fix For: 1.8.1
>
>         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)