[Bug #1287] Fix NPE opening a project from Gantt view

Like in bug #1290 it avoids NPE when a Task or TaskGroup is not related to any OrderElement.

FEA: ItEr75S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2011-12-14 18:44:07 +01:00
parent 18be3087ad
commit 56d84ff36c

View file

@ -773,7 +773,8 @@ public class TaskElementAdapter {
@Override
public String getTooltipText() {
if (taskElement.isMilestone()) {
if (taskElement.isMilestone()
|| taskElement.getOrderElement() == null) {
return "";
}
return transactionService
@ -790,7 +791,8 @@ public class TaskElementAdapter {
@Override
public String getLabelsText() {
if (taskElement.isMilestone()) {
if (taskElement.isMilestone()
|| taskElement.getOrderElement() == null) {
return "";
}
return transactionService