You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tamaya.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/04/29 22:19:00 UTC
[jira] [Commented] (TAMAYA-335) NullPointerException on
SimplePropertySource.Builder.withName()
[ https://issues.apache.org/jira/browse/TAMAYA-335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16458218#comment-16458218 ]
ASF subversion and git services commented on TAMAYA-335:
--------------------------------------------------------
Commit c97b5e71381df0c3d1c6f04b4a7a770336693656 in incubator-tamaya's branch refs/heads/master from [~hugo.hirsch]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-tamaya.git;h=c97b5e7 ]
TAMAYA-335: Add bugfix with test for wrong builder var
* Add test and bugfix by renaming variable properly in builder.
> NullPointerException on SimplePropertySource.Builder.withName()
> ---------------------------------------------------------------
>
> Key: TAMAYA-335
> URL: https://issues.apache.org/jira/browse/TAMAYA-335
> Project: Tamaya
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.3-incubating
> Reporter: Harald Wellmann
> Assignee: Philipp Ottlinger
> Priority: Major
> Fix For: 0.4-incubating
>
>
> {{org.apache.tamaya.spisupport.SimplePropertySource.Builder.withName(String)}} always throws a {{NullPointerException}}.
> The method parameter is never used:
> {code}
> public Builder withName(String val) {
> this.name = Objects.requireNonNull(name);
> return this;
> }
> {code}
> The parameter should be renamed from {{val}} to {{name}}.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)