| TitleAreaDialog - An exception with no message. [message #1092970]
||Fri, 23 August 2013 11:38
| Asha Ramegowda
Registered: July 2009
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);
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.
[Updated on: Fri, 30 August 2013 09:21]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.07771 seconds