Community
Participate
Working Groups
in GanttComposite line 5197 _endCalender field is null; final long viewPortStart = temp.getTimeInMillis(); if (_daysVisible == 0) { temp.setTime(_endCalendar.getTime()); } else { temp.add(Calendar.DATE, _daysVisible); } java.lang.NullPointerException at org.eclipse.nebula.widgets.ganttchart.GanttComposite.getEventVisibility(GanttComposite.java:5199) at org.eclipse.nebula.widgets.ganttchart.GanttComposite.isEventVisible(GanttComposite.java:5109) at nl.remain.td.planning.gantt.GanttWorker.updateViewer(GanttWorker.java:653) at nl.remain.td.planning.gantt.GanttWorker.updateViewer(GanttWorker.java:519) at nl.remain.td.planning.gantt.GanttWorker.updateViewerWithRequestFilter(GanttWorker.java:591) at nl.remain.td.planning.gantt.GanttWorker.updateViewer(GanttWorker.java:527) at nl.remain.td.planning.gantt.GanttWorker.refresh(GanttWorker.java:97) at nl.remain.td.planning.gantt.GanttWorker.setInput(GanttWorker.java:711) at nl.remain.td.planning.views.PlanningView.show(PlanningView.java:782) at nl.remain.td.planning.handlers.ShowInPlanningViewHandler.execute(ShowInPlanningViewHandler.java:36) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
this occurs when the view widget is about the be created and is not visible. When the widget is visible then this does not occur. This is the code invoking it: // // Jump to the event if it is not visible if (!ganttChart.getGanttComposite().isEventVisible(scope, ganttChart.getGanttComposite().getVisibleBounds())) { ganttChart.getGanttComposite().setDate(scope.getStartDate()); }
Bug fixed in nebula V2.3.0