We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f190d10 commit 9f9c257Copy full SHA for 9f9c257
src/io/flutter/FlutterUtils.java
@@ -219,7 +219,11 @@ public static boolean isInTestDir(@Nullable DartFile file) {
219
}
220
221
private static boolean isInTestOrSourceRoot(Module module, @NotNull DartFile file) {
222
- final ContentEntry[] entries = ModuleRootManager.getInstance(module).getContentEntries();
+ final ModuleRootManager manager = ModuleRootManager.getInstance(module);
223
+ if (manager == null) {
224
+ return false;
225
+ }
226
+ final ContentEntry[] entries = manager.getContentEntries();
227
final VirtualFile virtualFile = file.getContainingFile().getVirtualFile();
228
boolean foundSourceRoot = false;
229
for (ContentEntry entry : entries) {
0 commit comments