Capture NullPointerException slightly more gracefully in ValueBuilderFactory
----------------------------------------------------------------------------

                 Key: QI-297
                 URL: http://issues.ops4j.org/browse/QI-297
             Project: Qi4j
          Issue Type: Improvement
          Components: Core Runtime
    Affects Versions: 1.2, 1.1, 1.0
            Reporter: Niclas Hedhman
            Assignee: Niclas Hedhman


When calling

    valueBuilderFactory.newValueBuilder( null );

there is confusing stacktrace. Should detect this upfront and throw a shallow 
NPE.

java.lang.NullPointerException
        at 
java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
        at 
org.qi4j.runtime.structure.ModuleInstance.findValueModel(ModuleInstance.java:342)
        at 
org.qi4j.runtime.structure.ModuleInstance.access$600(ModuleInstance.java:77)
        at 
org.qi4j.runtime.structure.ModuleInstance$ValueBuilderFactoryInstance.newValueBuilder(ModuleInstance.java:504)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.ops4j.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to