fix(Cache): ignore IllegalStateException ProjectImpl.getEarlyDisposable must not return null
This commit is contained in:
@@ -132,6 +132,9 @@ public class LineEndCacheUtils {
|
||||
}
|
||||
}).inSmartMode(project).executeSynchronously();
|
||||
}));
|
||||
} catch (IllegalStateException ignore) {
|
||||
// ignore inSmartMode(project) throw:
|
||||
// @NotNull method com/intellij/openapi/project/impl/ProjectImpl.getEarlyDisposable must not return null
|
||||
} catch (Exception e) {
|
||||
LOG.info("LineEndCacheUtils cache.forEach catch Throwable but log to record.", e);
|
||||
}
|
||||
|
||||
@@ -84,6 +84,9 @@ public class TreeCacheUtils {
|
||||
}).inSmartMode(project).executeSynchronously();
|
||||
}
|
||||
});
|
||||
} catch (IllegalStateException ignore) {
|
||||
// ignore inSmartMode(project) throw:
|
||||
// @NotNull method com/intellij/openapi/project/impl/ProjectImpl.getEarlyDisposable must not return null
|
||||
} catch (Exception e) {
|
||||
LOG.info("TreeCacheUtils cache.forEach catch Throwable but log to record.", e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user