[OS-JIRA] Created: (CAY-252) validateForSave NPE when data object has no DataNode maped

From: jir..bjectstyle.org
Date: Thu Dec 23 2004 - 12:03:00 EST

  • Next message: jir..bjectstyle.org: "[OS-JIRA] Created: (CAY-253) Current limitation with inheritance - qualifier can't span relationships"

    Message:

      A new issue has been created in JIRA.

    ---------------------------------------------------------------------
    View the issue:

      http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-252

    Here is an overview of the issue:
    ---------------------------------------------------------------------
            Key: CAY-252
        Summary: validateForSave NPE when data object has no DataNode maped
           Type: Bug

         Status: Assigned
       Priority: Trivial

        Project: Cayenne
     Components:
                 Cayenne Core Library
       Fix Fors:
                 1.2 [DEV]
       Versions:
                 1.2 [DEV]

       Assignee: Andrus Adamchik
       Reporter: Andrus Adamchik

        Created: Thu, 23 Dec 2004 12:02 PM
        Updated: Thu, 23 Dec 2004 12:02 PM

    Description:
    For an entity without a DataNode calling validateForSave results in a NPE. Should throw something more meaningful.

    java.lang.NullPointerException
            at org.objectstyle.cayenne.CayenneDataObject.validateForSave(CayenneDataObject.java:566)
            at org.objectstyle.cayenne.CayenneDataObject.validateForInsert(CayenneDataObject.java:689)
            at org.objectstyle.cayenne.access.ObjectStore.validateUncommittedObjects(ObjectStore.java:874)
            at org.objectstyle.cayenne.access.DataContext.commitChanges(DataContext.java:1130)
            at org.objectstyle.cayenne.access.DataContext.commitChanges(DataContext.java:1106)
            at persistence.Page.main(Page.java:25)

    ---------------------------------------------------------------------
    JIRA INFORMATION:
    This message is automatically generated by JIRA.

    If you think it was sent incorrectly contact one of the administrators:
       http://objectstyle.org/jira/secure/Administrators.jspa

    If you want more information on JIRA, or have a bug to report see:
       http://www.atlassian.com/software/jira



    This archive was generated by hypermail 2.0.0 : Thu Dec 23 2004 - 12:03:02 EST