You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Joern Kottmann (JIRA)" <de...@uima.apache.org> on 2018/11/30 10:53:00 UTC
[jira] [Comment Edited] (UIMA-5913) Nullpointer Exception when
closing a UIMAAnnotationViewer window
[ https://issues.apache.org/jira/browse/UIMA-5913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16704564#comment-16704564 ]
Joern Kottmann edited comment on UIMA-5913 at 11/30/18 10:52 AM:
-----------------------------------------------------------------
Here is a short code sample to illustrate the underlying problem:
{quote}@Override
public void dispose() {
Objects.requireNonNull(getSite());
Objects.requireNonNull(getSite().getPage());
super.dispose();
Objects.requireNonNull(getSite()); // FAILS Objects.requireNonNull(getSite().getPage());
}{quote}
was (Author: joern):
Here is a short code sample to illustrate the underlying problem:
@Override
public void dispose() {
Objects.requireNonNull(getSite());
Objects.requireNonNull(getSite().getPage());
super.dispose();
Objects.requireNonNull(getSite()); // FAILS
Objects.requireNonNull(getSite().getPage());
}
> Nullpointer Exception when closing a UIMAAnnotationViewer window
> ----------------------------------------------------------------
>
> Key: UIMA-5913
> URL: https://issues.apache.org/jira/browse/UIMA-5913
> Project: UIMA
> Issue Type: Bug
> Components: Core Java Framework, Eclipse plugins, Ruta
> Affects Versions: 2.6.2ruta
> Environment: *OS:*
> Distributor ID: Ubuntu
> Description: Ubuntu 18.04.1 LTS
> Release: 18.04
> Codename: bionic
> *ECLIPSE & JAVA:*
> !SESSION 2018-11-28 17:11:26.789 -----------------------------------------------
> eclipse.buildId=4.9.0.I20180906-0745
> java.version=1.8.0_191
> java.vendor=Oracle Corporation
> BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
> Framework arguments: -product org.eclipse.epp.package.java.product
> Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.java.product
> Created Time: 2018-11-29 08:47:09.695
> !ENTRY org.eclipse.e4.ui.workbench 4 0 2018-11-29 08:47:09.695
> Reporter: Erdan Genc
> Assignee: Peter Klügl
> Priority: Minor
> Labels: usability
> Attachments: error.log
>
>
> When closing a UIMAAnnotationViewer window in eclipse under linux, an unexpected Nullpointer is thrown which renders the UIMA perspectives (AnnotationBrowser, SelectionView, etc.) unusable.
> Current workaround: Restart eclipse and don't close UIMAAnnotationViewer windows.
> You can find the error.log in the attachments.
>
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)