Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367169 - [Table] NPE in CreateNewElementHandler
Summary: [Table] NPE in CreateNewElementHandler
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EMF-Facet (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P4 trivial (vote)
Target Milestone: ---   Edit
Assignee: Nicolas Bros CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-20 05:54 EST by Nicolas Bros CLA
Modified: 2020-05-01 11:27 EDT (History)
2 users (show)

See Also:
gdupe: juno+


Attachments
stacktrace (5.18 KB, text/plain)
2011-12-20 05:54 EST, Nicolas Bros CLA
gdupe: iplog-
Details

Note You need to log in before you can comment on or make changes to this bug.
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.