[flutter_tools] Fallback discovery: Don't crash when an Isolate has no root library (#52354)
This commit is contained in:
@@ -167,7 +167,7 @@ class FallbackDiscovery {
|
||||
throw Exception('Expected Isolate but found Sentinel: $isolateResponse');
|
||||
}
|
||||
final LibraryRef library = (isolateResponse as Isolate).rootLib;
|
||||
if (library.uri.startsWith('package:$packageName')) {
|
||||
if (library != null && library.uri.startsWith('package:$packageName')) {
|
||||
UsageEvent(
|
||||
_kEventName,
|
||||
'success',
|
||||
|
||||
Reference in New Issue
Block a user