Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » TitleAreaDialog - An exception with no message.
icon9.gif  TitleAreaDialog - An exception with no message. [message #1092970] Fri, 23 August 2013 11:38 Go to next message
Asha Ramegowda is currently offline 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

icon7.gif  Re: TitleAreaDialog - An exception with no message. [message #1097866 is a reply to message #1092970] Fri, 30 August 2013 09:02 Go to previous message
Asha Ramegowda is currently offline Asha Ramegowda
Messages: 77
Registered: July 2009
Member
Figured out the issue Smile!

Somehow, the composite was not drawn properly until I introduced the create() call before calling createContents(composite).

That drawn wizard perfectly.
Previous Topic:React on value change along with databinding
Next Topic:Problem compiling JFace snippet
Goto Forum:
  


Current Time: Mon Oct 20 22:44:05 GMT 2014

Powered by FUDForum. Page generated in 0.07771 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software