Ticket #77 (new defect)

Opened 5 years ago

Last modified 5 years ago

Cannot add field restrictions

Reported by: anonymous Assigned to: eitan
Priority: major Component: authorization
Version: Keywords:
Cc:

Description

Another broken 'feature' using the issues demo -

Types->Field Restrictions->New

Select "Browse" on "Element" field

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at com.u2d.view.swing.atom.TypePicker.<init>(TypePicker.java:37)
    at com.u2d.find.inequalities.IdentityInequality$TypeInequality.getValueEditor(IdentityInequality.java:112)
    at com.u2d.view.swing.find.FieldFilter$2.actionPerformed(FieldFilter.java:178)
    at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1197)
    at javax.swing.JComboBox.contentsChanged(JComboBox.java:1268)
    at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
    at javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:88)
    at javax.swing.DefaultComboBoxModel.addElement(DefaultComboBoxModel.java:126)
    at javax.swing.JComboBox.addItem(JComboBox.java:690)
    at com.u2d.view.swing.find.FieldFilter.updateIneqCombo(FieldFilter.java:131)
    at com.u2d.view.swing.find.FieldFilter.access$300(FieldFilter.java:27)
    at com.u2d.view.swing.find.FieldFilter$1.actionPerformed(FieldFilter.java:122)
    at com.u2d.ui.JComboTree.fireActionEvent(JComboTree.java:186)
    at com.u2d.ui.JComboTree.setSelectedPath(JComboTree.java:142)
    at com.u2d.ui.JComboTree.selectFirst(JComboTree.java:95)
    at com.u2d.view.swing.find.FieldFilter.<init>(FieldFilter.java:57)
    at com.u2d.view.swing.find.FindPanel.<init>(FindPanel.java:34)
    at com.u2d.view.swing.list.TitleBarView.<init>(TitleBarView.java:47)
    at com.u2d.view.swing.list.ListEOFrame.<init>(ListEOFrame.java:42)
    at com.u2d.view.swing.SwingViewMechanism.frameFor(SwingViewMechanism.java:296)
    at com.u2d.view.swing.SwingViewMechanism.access$300(SwingViewMechanism.java:43)
    at com.u2d.view.swing.SwingViewMechanism$6.run(SwingViewMechanism.java:286)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Select "Find" on "Element" field

java.lang.NullPointerException
	at com.u2d.view.swing.atom.TypePicker.<init>(TypePicker.java:37)
	at com.u2d.find.inequalities.IdentityInequality$TypeInequality.getValueEditor(IdentityInequality.java:112)
	at com.u2d.view.swing.find.FieldFilter$2.actionPerformed(FieldFilter.java:178)
	at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1197)
	at javax.swing.JComboBox.contentsChanged(JComboBox.java:1268)
	at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
	at javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:88)
	at javax.swing.DefaultComboBoxModel.addElement(DefaultComboBoxModel.java:126)
	at javax.swing.JComboBox.addItem(JComboBox.java:690)
	at com.u2d.view.swing.find.FieldFilter.updateIneqCombo(FieldFilter.java:131)
	at com.u2d.view.swing.find.FieldFilter.access$300(FieldFilter.java:27)
	at com.u2d.view.swing.find.FieldFilter$1.actionPerformed(FieldFilter.java:122)
	at com.u2d.ui.JComboTree.fireActionEvent(JComboTree.java:186)
	at com.u2d.ui.JComboTree.setSelectedPath(JComboTree.java:142)
	at com.u2d.ui.JComboTree.selectFirst(JComboTree.java:95)
	at com.u2d.view.swing.find.FieldFilter.<init>(FieldFilter.java:57)
	at com.u2d.view.swing.find.FindForm.addFilter(FindForm.java:67)
	at com.u2d.view.swing.find.FindForm.<init>(FindForm.java:49)
	at com.u2d.view.swing.find.FindView2.<init>(FindView2.java:38)
	at com.u2d.view.swing.SwingViewMechanism.getFindView2(SwingViewMechanism.java:884)
	at com.u2d.model.ComplexType.Find(ComplexType.java:568)
	at com.u2d.model.NullAssociation.Find(NullAssociation.java:110)
	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 com.u2d.element.EOCommand.execute(EOCommand.java:84)
	at com.u2d.element.EOCommand.execute(EOCommand.java:69)
	at com.u2d.view.swing.CommandAdapter$1.run(CommandAdapter.java:58)

Change History

01/18/07 12:35:32 changed by eitan

  • component set to authorization.