[OS-JIRA] Created: (WOL-384) NPE when creating relationship in Entity Modeler

From: John Huss (JIRA) ("John)
Date: Mon Feb 26 2007 - 12:48:40 EST

  • Next message: Marc Guenther: "[OT] Patch for tripleclick / doubleclick'n drag in Eclipse 3.2.2"

    NPE when creating relationship in Entity Modeler
    ------------------------------------------------

                     Key: WOL-384
                     URL: http://issues.objectstyle.org/jira/browse/WOL-384
                 Project: WOProject/WOLips
              Issue Type: Bug
              Components: wolips
        Affects Versions: 2.0.0.* (unreleased please specify)
             Environment: 2.0.0.3801
                Reporter: John Huss
                Priority: Minor

    1) Create a new relationship
    2) Don't select a destination entity
    3) Select a join key for the first entity
    4) Click to select a join key for the second entity (there will be no choices)
    5) Click to select a join key for the first entity again
    6) You get the following error:

    java.lang.NullPointerException
            at org.objectstyle.wolips.eomodeler.editors.relationship.EOJoinsCellModifier._modify(EOJoinsCellModifier.java:93)
            at org.objectstyle.wolips.eomodeler.utils.TablePropertyCellModifier.modify(TablePropertyCellModifier.java:117)
            at org.eclipse.jface.viewers.TableEditorImpl.saveEditorValue(TableEditorImpl.java:320)
            at org.eclipse.jface.viewers.TableEditorImpl.applyEditorValue(TableEditorImpl.java:162)
            at org.eclipse.jface.viewers.TableEditorImpl$3.applyEditorValue(TableEditorImpl.java:291)
            at org.eclipse.jface.viewers.CellEditor$1.run(CellEditor.java:305)
            at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
            at org.eclipse.core.runtime.Platform.run(Platform.java:843)
            at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
            at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
            at org.eclipse.jface.viewers.CellEditor.fireApplyEditorValue(CellEditor.java:303)
            at org.objectstyle.wolips.eomodeler.utils.KeyComboBoxCellEditor.applyEditorValueAndDeactivate(KeyComboBoxCellEditor.java:315)
            at org.objectstyle.wolips.eomodeler.utils.KeyComboBoxCellEditor.focusLost(KeyComboBoxCellEditor.java:326)
            at org.objectstyle.wolips.eomodeler.utils.KeyComboBoxCellEditor$4.focusLost(KeyComboBoxCellEditor.java:210)
            at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:109)
            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1496)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1505)
            at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
            at org.eclipse.swt.custom.CCombo.handleFocus(CCombo.java:675)
            at org.eclipse.swt.custom.CCombo$2.handleEvent(CCombo.java:117)
            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
            at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1109)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1495)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1501)
            at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:2290)
            at org.eclipse.swt.widgets.Table.kEventMouseDown(Table.java:2157)
            at org.eclipse.swt.widgets.Widget.mouseProc(Widget.java:1246)
            at org.eclipse.swt.widgets.Display.mouseProc(Display.java:2771)
            at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native Method)
            at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2910)
            at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
            at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
            at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
            at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
            at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
            at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
            at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
            at org.eclipse.core.launcher.Main.run(Main.java:977)
            at org.eclipse.core.launcher.Main.main(Main.java:952)

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



    This archive was generated by hypermail 2.0.0 : Mon Feb 26 2007 - 12:48:45 EST