File tree 1 file changed +6
-2
lines changed
flutter-idea/src/io/flutter/run
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -138,12 +138,16 @@ private static void suppressDebugViews(@Nullable RunnerLayoutUi ui) {
138
138
139
139
final String name = XDebuggerBundle .message ("debugger.session.tab.console.content.name" );
140
140
for (Content c : ui .getContents ()) {
141
- if (!Objects .equals (c .getTabName (), name )) {
141
+ if (c != null && !Objects .equals (c .getTabName (), name )) {
142
142
try {
143
- ApplicationManager .getApplication ().invokeAndWait (() -> ui .removeContent (c , false /* dispose? */ ));
143
+ var application = ApplicationManager .getApplication ();
144
+ if (application != null ) {
145
+ application .invokeAndWait (() -> ui .removeContent (c , false /* dispose? */ ));
146
+ }
144
147
}
145
148
catch (ProcessCanceledException e ) {
146
149
FlutterUtils .warn (LOG , e );
150
+ throw e ;
147
151
}
148
152
}
149
153
}
You can’t perform that action at this time.
0 commit comments