Menu

#102 Planner writer causes Null Pointer exception

closed-fixed
Jon Iles
None
5
2009-10-15
2009-10-12
No

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.

Discussion

  • Jon Iles

    Jon Iles - 2009-10-15

    The code now in CVS fixes this issue.

     
  • Jon Iles

    Jon Iles - 2009-10-15
    • assigned_to: nobody --> joniles
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB