Skip to content

Commit 15e7ec4

Browse files
authored
Fix null error on shutdown (#1072)
1 parent f5bb384 commit 15e7ec4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

dwds/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- Allow reading metadata generated by `dev_compiler` from file to supply
88
module information to `Dwds`.
99
- Hide JavaScript type errors when hovering over text in the debugger.
10+
- Fix an issue where reusing a connection could cause a null error.
1011

1112
**Breaking Changes:**
1213
- Require access to the `.ddc_merged_metadata` file.

dwds/lib/src/handlers/dev_handler.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ class DevHandler {
388388
if (canReuseConnection) {
389389
// Disconnect any old connection (eg. those in the keep-alive waiting
390390
// state when reloading the page).
391-
existingAppConection.shutDown();
391+
existingAppConection?.shutDown();
392392
services.chromeProxyService?.destroyIsolate();
393393

394394
// Reconnect to existing service.

0 commit comments

Comments
 (0)