reef-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yunseong Lee (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (REEF-967) Handle null in RequiredImpl
Date Mon, 18 Jul 2016 10:23:20 GMT

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

Yunseong Lee updated REEF-967:
------------------------------
    Assignee: Ji Eun Lee

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

Mime
View raw message