Bug 518575 - NullPointerException in SnippetMetadataPage.dispose
Summary: NullPointerException in SnippetMetadataPage.dispose
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Recommenders (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-21 08:56 EDT by EPP Error Reports CLA
Modified: 2019-07-24 14:36 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description EPP Error Reports CLA 2017-06-21 08:56:24 EDT
The following problem was reported via the automated error reporting:

Message: 
java.lang.NullPointerException: null
    at org.eclipse.recommenders.internal.snipmatch.rcp.editors.SnippetMetadataPage.dispose(SnippetMetadataPage.java:758)
    at org.eclipse.ui.forms.editor.FormEditor.dispose(FormEditor.java:410)
    at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:158)
    at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:99)
    at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:355)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)


The reporter(s) left the following comment(s):

--- Andreas Sewe wrote on 8aae: ---
*Re*opened an snippet match editor through File > Recent Documents.

Bundles:
| org.eclipse.e4.core.di | 1.6.100.v20170421-1418 | 1.6.100.v20170421-1418 |
| org.eclipse.recommenders.snipmatch.rcp | 2.4.9.v20170613-1301 | 2.4.9.v20170613-1301 |
| org.eclipse.ui | 3.109.0.v20170411-1742 | 3.109.0.v20170411-1742 |
| org.eclipse.ui.forms | 3.7.100.v20170517-1755 | 3.7.100.v20170517-1755 |

Operating Systems:
| MacOSX | 10.10.5 | 10.10.5 |


The above information is a snapshot of the collected data. Visit https://dev.eclipse.org/recommenders/committers/aeri/v2/#!/problems/594a6c3fe4b02bd704568aaf for the latest data.

Thank you for your assistance.
 Your friendly error-reports-inbox.
Comment 1 Andreas Sewe CLA 2017-06-21 08:58:30 EDT
This incident likely has the same root cause: <https://dev.eclipse.org/recommenders/committers/aeri/v2/#!/problems/594a6c3fe4b02bd704568ab1>

Bundle: org.eclipse.e4.ui.workbench 1.5.0.v20170412-0908
Message:
Exception:
org.eclipse.core.runtime.AssertionFailedException: null argument:
    at org.eclipse.jface.viewers.StructuredSelection.(StructuredSelection.java:79)
    at org.eclipse.recommenders.internal.snipmatch.rcp.editors.SnippetMetadataPage$1.initialize(SnippetMetadataPage.java:265)
    at org.eclipse.ui.forms.ManagedForm.addPart(ManagedForm.java:80)
    at org.eclipse.recommenders.internal.snipmatch.rcp.editors.SnippetMetadataPage.createFormContent(SnippetMetadataPage.java:465)
    at org.eclipse.ui.forms.editor.FormPage.lambda$0(FormPage.java:163)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.ui.forms.editor.FormPage.createPartControl(FormPage.java:163)
    at org.eclipse.ui.forms.editor.FormEditor.pageChange(FormEditor.java:480)
    at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1077)
    at org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:614)
    at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:352)
    at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.createPartControl(CompatibilityPart.java:151)
    at org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor.createPartControl(CompatibilityEditor.java:99)
    at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:355)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
Comment 2 Andreas Sewe CLA 2017-06-21 09:00:07 EDT
Steps to reproduce:

- Select some Java source and choose "Create Snippet..." from the context menu

- Close the snippet editor without saving

- Open the "[-]" recent files entry from the File menu

This tries to open the snippet editor but fails with the above exceptions.