Planner writer causes Null Pointer exception
Multi platform library to read and write schedule data
Brought to you by:
joniles
Planner writer causes Null Pointer exception while writing Project file with task where constraint date is null.
While debugging source code I discovered problem in Planner Writer class.
In my version it is approximately at line no. 465
plannerConstraint.setTime(getDateTimeString(mpxjTask.getConstraintDate()));
There should be not null check.
Otherwise it causes Null Pointer exception at lines 751-752:
private String getDateTimeString(Date value)
{
Calendar cal = Calendar.getInstance();
cal.setTime(value);
P.S. In my attached file mentioned exception can be seen on Task with id 71 called Doc reviews.
Task with id=71 causes exception
The code now in CVS fixes this issue.