[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:
parent
18be3087ad
commit
56d84ff36c
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue