mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
ensure the path is never null
This commit is contained in:
@@ -447,12 +447,18 @@ public final class TreeView implements AntOutputView, OccurenceNavigator {
|
||||
}
|
||||
|
||||
public void finishTarget() {
|
||||
myParentPath = myParentPath.getParentPath();
|
||||
final TreePath parentPath = myParentPath.getParentPath();
|
||||
if (parentPath != null) {
|
||||
myParentPath = parentPath;
|
||||
}
|
||||
}
|
||||
|
||||
public void finishTask() {
|
||||
myCurrentTaskName = null;
|
||||
myParentPath = myParentPath.getParentPath();
|
||||
final TreePath parentPath = myParentPath.getParentPath();
|
||||
if (parentPath != null) {
|
||||
myParentPath = parentPath;
|
||||
}
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user