Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » null pointer in calculateScope
null pointer in calculateScope [message #1058125] Sun, 12 May 2013 06:21 Go to next message
Andrea Sindico is currently offline Andrea Sindico
Messages: 266
Registered: November 2010
Senior Member

I am getting this error

java.lang.NullPointerException
at org.eclipse.nebula.widgets.ganttchart.GanttEvent.calculateScope(GanttEvent.java:1642)

and I can't figure out why. I know there has to be something wrong in the way I am creating the gantt but I can't provide you the whole code as it is actually created while navigating a tree.

However I also think there has to be a missing null check in the calculateScope method. I hope this may help you



Follow me on Twitter @andreasindico

Re: null pointer in calculateScope [message #1058126 is a reply to message #1058125] Sun, 12 May 2013 06:52 Go to previous messageGo to next message
Andrea Sindico is currently offline Andrea Sindico
Messages: 266
Registered: November 2010
Senior Member

it seems to be related to the line

event.getActualStartDate().before(earliest)

may getActualStartDate return a null value? just guessing...


Follow me on Twitter @andreasindico

Re: null pointer in calculateScope [message #1058246 is a reply to message #1058126] Mon, 13 May 2013 10:39 Go to previous messageGo to next message
Andrea Sindico is currently offline Andrea Sindico
Messages: 266
Registered: November 2010
Senior Member

I have posted a new bug attaching a plugin reproducing the issue

https://bugs.eclipse.org/bugs/show_bug.cgi?id=407809



Follow me on Twitter @andreasindico

Re: null pointer in calculateScope [message #1058802 is a reply to message #1058246] Wed, 15 May 2013 07:36 Go to previous message
Andrea Sindico is currently offline Andrea Sindico
Messages: 266
Registered: November 2010
Senior Member

the issue is on Windows as well then, in the bug, I changed the applicable platforms to 'All'

Follow me on Twitter @andreasindico

Previous Topic:Children relationship lines in GridTreeViewer
Next Topic:Xviewer - activities
Goto Forum:
  


Current Time: Thu Oct 02 08:43:04 GMT 2014

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

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