You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Nikita Timofeev (JIRA)" <ji...@apache.org> on 2018/01/29 14:18:00 UTC

[jira] [Closed] (CAY-2401) Modeler: NPE in ObjEntity sync action

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

Nikita Timofeev closed CAY-2401.
--------------------------------
    Resolution: Fixed

*4.1*: https://github.com/apache/cayenne/commit/5cbb4f0891a55a9c48206582e8142d90d6f72b5b

*4.0*: https://github.com/apache/cayenne/commit/27923edf88394ca4a0d51a8a3cb8b1357c1f934c

> Modeler: NPE in ObjEntity sync action
> -------------------------------------
>
>                 Key: CAY-2401
>                 URL: https://issues.apache.org/jira/browse/CAY-2401
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 4.0.B2, 4.1.M1
>            Reporter: Nikita Timofeev
>            Assignee: Nikita Timofeev
>            Priority: Major
>             Fix For: 4.0.B3, 4.1.M2
>
>
> Here is stack trace with the Exception:
> {code}
> CayenneModeler Info
> Version: 4.1.M1
> Build Date: Oct 06 2017 09:23:31
> Exception: 
> =================================
> java.lang.NullPointerException
>     at org.apache.cayenne.dbsync.merge.context.EntityMergeSupport.isSameAttributes(EntityMergeSupport.java:432)
>     at org.apache.cayenne.dbsync.merge.context.EntityMergeSupport.objRelationshipHasDbRelationship(EntityMergeSupport.java:404)
>     at org.apache.cayenne.dbsync.merge.context.EntityMergeSupport.shouldAddToObjEntity(EntityMergeSupport.java:387)
>     at org.apache.cayenne.dbsync.merge.context.EntityMergeSupport.getRelationshipsToAdd(EntityMergeSupport.java:464)
>     at org.apache.cayenne.dbsync.merge.context.EntityMergeSupport.addMissingRelationships(EntityMergeSupport.java:183)
>     at org.apache.cayenne.dbsync.merge.context.EntityMergeSupport.synchronizeWithDbEntity(EntityMergeSupport.java:148)
>     at org.apache.cayenne.modeler.action.ObjEntitySyncAction.syncObjEntity(ObjEntitySyncAction.java:85)
>     at org.apache.cayenne.modeler.action.ObjEntitySyncAction.performAction(ObjEntitySyncAction.java:67)
>     at org.apache.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:165)
>     at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)