Skip to content

Commit 76af4c0

Browse files
authored
1 parent 3e11a80 commit 76af4c0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/io/flutter/FlutterUtils.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,10 @@ public static boolean isInTestDir(@Nullable DartFile file) {
218218
return FlutterModuleUtils.isFlutterModule(module);
219219
}
220220

221-
private static boolean isInTestOrSourceRoot(Module module, @NotNull DartFile file) {
221+
private static boolean isInTestOrSourceRoot(@Nullable Module module, @NotNull DartFile file) {
222+
if (module == null) {
223+
return false;
224+
}
222225
final ModuleRootManager manager = ModuleRootManager.getInstance(module);
223226
if (manager == null) {
224227
return false;

0 commit comments

Comments
 (0)