Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
4.0.M4
-
None
-
None
Description
I had a project open in CayenneModeler. After doing some work, I tried switching to another project from "Recent Projects". Got the error below. I dismissed the error, and tried closing the current project instead. Got the same error. I can no longer reproduce it (so this is likely related to the model state prior to closing the project). But perhaps we can guess an issue from the stack trace.
CayenneModeler Info
Version: 4.0.M4
Build Date: Dec 06 2016 14:38:16
Exception:
=================================
java.lang.NullPointerException
at org.apache.cayenne.modeler.util.state.DisplayEventType.parseToString(DisplayEventType.java:70)
at org.apache.cayenne.modeler.util.state.AttributeDisplayEventType.saveLastDisplayEvent(AttributeDisplayEventType.java:87)
at org.apache.cayenne.modeler.util.state.ProjectStateUtil.saveLastState(ProjectStateUtil.java:55)
at org.apache.cayenne.modeler.CayenneModelerController.projectClosedAction(CayenneModelerController.java:209)
at org.apache.cayenne.modeler.action.ProjectAction.closeProject(ProjectAction.java:75)
at org.apache.cayenne.modeler.action.OpenProjectAction.performAction(OpenProjectAction.java:99)
at org.apache.cayenne.modeler.util.CayenneAction.actionPerformed(CayenneAction.java:162)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
at com.apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:125)
at java.awt.MenuItem.processActionEvent(MenuItem.java:669)
at java.awt.MenuItem.processEvent(MenuItem.java:628)
at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:351)
at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:339)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:761)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)