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 3e11a80 commit 76af4c0Copy full SHA for 76af4c0
src/io/flutter/FlutterUtils.java
@@ -218,7 +218,10 @@ public static boolean isInTestDir(@Nullable DartFile file) {
218
return FlutterModuleUtils.isFlutterModule(module);
219
}
220
221
- private static boolean isInTestOrSourceRoot(Module module, @NotNull DartFile file) {
+ private static boolean isInTestOrSourceRoot(@Nullable Module module, @NotNull DartFile file) {
222
+ if (module == null) {
223
+ return false;
224
+ }
225
final ModuleRootManager manager = ModuleRootManager.getInstance(module);
226
if (manager == null) {
227
return false;
0 commit comments