Bug #1506: Prevent NPE in project dashboard if there is no tasks yet
FEA: ItEr76S04BugFixing
This commit is contained in:
parent
b843fc9d87
commit
ba2dacedb4
1 changed files with 3 additions and 0 deletions
|
|
@ -52,6 +52,9 @@ public class GanttDiagramBuilder {
|
|||
GanttDiagramGraph<TaskElement, DependencyWithVisibility> graph = createFor(
|
||||
order, adapter);
|
||||
TaskSource taskSource = order.getTaskSource();
|
||||
if (taskSource == null) {
|
||||
return graph;
|
||||
}
|
||||
graph.addTopLevel(taskSource.getTask());
|
||||
for (Dependency each : getAllDependencies(order)) {
|
||||
graph.addWithoutEnforcingConstraints(DependencyWithVisibility
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue