NPE in ModuleUnitOfWork which should be a informative Exception
---------------------------------------------------------------

                 Key: QI-340
                 URL: http://issues.ops4j.org/browse/QI-340
             Project: Qi4j
          Issue Type: Bug
    Affects Versions: 1.2
            Reporter: Niclas Hedhman


In ModuleUnitOfWork, around line 180, the following section;

// Generate id if necessary
        if( identity == null )
        {
            IdentityGenerator idGen = 
entityModuleInstance.entities().identityGenerator();
            identity = idGen.generate( entityModel.type() );
        }

throws a NullPointerException on idGen.generate(), if there is no IdGenerator 
defined. Need to be checked and then thrown something informative.

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