You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by "Markus Weimer (JIRA)" <ji...@apache.org> on 2016/08/03 18:27:20 UTC
[jira] [Resolved] (REEF-967) Handle null in RequiredImpl
[ https://issues.apache.org/jira/browse/REEF-967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Markus Weimer resolved REEF-967.
--------------------------------
Resolution: Fixed
Fix Version/s: 0.16
Resolved via [#1079|https://github.com/apache/reef/pull/1079]
> Handle null in RequiredImpl
> ---------------------------
>
> Key: REEF-967
> URL: https://issues.apache.org/jira/browse/REEF-967
> Project: REEF
> Issue Type: Sub-task
> Components: Tang
> Reporter: Sergey Dudoladov
> Assignee: Ji Eun Lee
> Priority: Minor
> Fix For: 0.16
>
>
> Setting {{RequiredImpl}} to null should throw an informative exception instead of NPE.
> To reproduce, in the {{TestConfigurationModule}} set the {{RequiredImpl<TestConfigurationModule.Foo> THE_FOO}} to null:
> {code}
> String s = null;
> MyConfigurationModule.CONF
> .set(MyConfigurationModule.THE_FOO, s)
> .build();
> {code}
> This code raises {{java.lang.NullPointerException}} in {{org.apache.reef.tang.util.ReflectionUtilities.classForName(ReflectionUtilities.java:170)}}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)