TitleAreaDialog - An exception with no message. [message #1092970] |
Fri, 23 August 2013 11:38  |
Asha Ramegowda Messages: 77 Registered: July 2009 |
Member |
|
|
Hi,
We are extending a TitleAreaDialog used for multiple purposes. Hence each time we create an instance of Dialog and get a composite of the parent, and draw the custom contents further.
The code is calling the creatContents method of TitleArea dialog by passing the parent composite (which is not null) onto the extended TitleAreaDialog from a different class as below to get the parent composite drawn.
Composite composite = new Composite(parent, SWT.NONE | SWT.BORDER);
composite.setLayout(new GridLayout());
createContents(composite);
But this is resulting into an NullPointer exception while running the createContents() method that displays Warning with Reason field empty!
Appreciate any help understanding what could be going wrong here.
Note: This code works perfectly fine on Eclipse 3.3. Currently we are migrating this application on to Eclipse 4.2.
Thanks.
[Updated on: Fri, 30 August 2013 09:21] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02871 seconds