8301133: IGV: NPE occurs when creating a diff graph with a graph in a different folder

Reviewed-by: rcastanedalo, chagedorn
This commit is contained in:
Koichi Sakata 2023-01-27 06:17:14 +00:00 committed by Tobias Hartmann
parent 0eb1f66fd8
commit 938b409608

View File

@ -126,7 +126,7 @@ public class Group extends Properties.Entity implements ChangedEventProvider<Gro
@Override
public String getDisplayName() {
return getParent().getElements().indexOf(this)+1 + " - " + getName();
return (getParent() == null ? "" : getParent().getElements().indexOf(this) + 1 + " - ") + getName();
}
public String getType() {