Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367169

Summary: [Table] NPE in CreateNewElementHandler
Product: z_Archived Reporter: Nicolas Bros <nicolas.bros>
Component: EMF-FacetAssignee: Nicolas Bros <nicolas.bros>
Status: CLOSED FIXED QA Contact:
Severity: trivial    
Priority: P4 CC: emft.facet-inbox, gdupe
Version: unspecifiedFlags: gdupe: juno+
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
stacktrace gdupe: iplog-

Description Nicolas Bros CLA 2011-12-20 05:54:39 EST
Created attachment 208600 [details]
stacktrace

I get a lot (I counted 47) of NPEs in CreateNewElementHandler when the table is opened.

This is because the handler enablement is called when the tableConfiguration is not yet initialized:

natTableWidgetPart.getNatTableWidget().getTableConfiguration() returns null.

Note: to see the exceptions, add a breakpoint on NullPointerException and open a table.
Comment 1 Gregoire Dupe CLA 2011-12-22 04:31:33 EST
Switch to trivial: because there is no consequences for the user.
Comment 2 Nicolas Bros CLA 2012-02-06 11:09:53 EST
Fixed in revision 1573.
Comment 3 Gregoire Dupe CLA 2012-05-23 07:40:22 EDT
This bug can be closed.