mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE, composite checkout listener. FS notifier might not be present. do not assert for that
This commit is contained in:
+3
-2
@@ -60,10 +60,11 @@ public class CompositeCheckoutListener implements CheckoutProvider.Listener {
|
||||
result.set(vDir);
|
||||
if (vDir != null) {
|
||||
final LocalFileSystem.WatchRequest watchRequest = lfs.addRootToWatch(vDir.getPath(), true);
|
||||
assert watchRequest != null;
|
||||
((NewVirtualFile)vDir).markDirtyRecursively();
|
||||
vDir.refresh(false, true);
|
||||
lfs.removeWatchedRoot(watchRequest);
|
||||
if (watchRequest != null) {
|
||||
lfs.removeWatchedRoot(watchRequest);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user