diff --git a/src/main/java/io/github/linwancen/plugin/show/cache/LineEndCacheUtils.java b/src/main/java/io/github/linwancen/plugin/show/cache/LineEndCacheUtils.java index 621945f..d030160 100644 --- a/src/main/java/io/github/linwancen/plugin/show/cache/LineEndCacheUtils.java +++ b/src/main/java/io/github/linwancen/plugin/show/cache/LineEndCacheUtils.java @@ -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); } diff --git a/src/main/java/io/github/linwancen/plugin/show/cache/TreeCacheUtils.java b/src/main/java/io/github/linwancen/plugin/show/cache/TreeCacheUtils.java index 17303f8..7ccc5cf 100644 --- a/src/main/java/io/github/linwancen/plugin/show/cache/TreeCacheUtils.java +++ b/src/main/java/io/github/linwancen/plugin/show/cache/TreeCacheUtils.java @@ -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); }