Name Finder View throws exception when an annotation is added
-------------------------------------------------------------
Key: OPENNLP-345
URL: https://issues.apache.org/jira/browse/OPENNLP-345
Project: OpenNLP
Issue Type: Bug
Components: Cas Editor OpenNLP Plugin
Reporter: Joern Kottmann
Assignee: Joern Kottmann
The name finder view throws an exception when an entity annotation is added and
nothing is selected in the name finder view.
Here is the exception:
org.eclipse.core.runtime.AssertionFailedException: null argument:
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
at
org.eclipse.jface.viewers.StructuredSelection.<init>(StructuredSelection.java:74)
at
org.apache.opennlp.caseditor.namefinder.EntityContentProvider$ConfirmedEntityListener.added(EntityContentProvider.java:166)
at
org.apache.uima.caseditor.editor.AbstractDocument.fireAddedFeatureStructure(AbstractDocument.java:63)
at
org.apache.uima.caseditor.editor.DocumentUimaImpl.addFeatureStructure(DocumentUimaImpl.java:104)
at
org.apache.uima.caseditor.editor.AnnotationDocument.addFeatureStructure(AnnotationDocument.java:106)
at
org.apache.uima.caseditor.editor.QuickTypeSelectionDialog.annotateAndClose(QuickTypeSelectionDialog.java:181)
at
org.apache.uima.caseditor.editor.QuickTypeSelectionDialog.access$300(QuickTypeSelectionDialog.java:67)
at
org.apache.uima.caseditor.editor.QuickTypeSelectionDialog$6.keyPressed(QuickTypeSelectionDialog.java:308)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:161)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3783)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1375)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1398)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1383)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1412)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1408)
at org.eclipse.swt.widgets.Tree.sendKeyEvent(Tree.java:2506)
at org.eclipse.swt.widgets.Control.keyDown(Control.java:2118)
at org.eclipse.swt.widgets.Composite.keyDown(Composite.java:600)
at org.eclipse.swt.widgets.Tree.keyDown(Tree.java:1886)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4985)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:220)
at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:1959)
at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2025)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5047)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:4589)
at org.eclipse.swt.widgets.Display.applicationProc(Display.java:4666)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
at
org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:115)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3281)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira