mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Fix NPE in Chrome Device (#42813)
This commit is contained in:
parent
fbbc4fa868
commit
01f779e97a
@ -61,7 +61,7 @@ class ChromeDevice extends Device {
|
||||
|
||||
@override
|
||||
DeviceLogReader getLogReader({ApplicationPackage app}) {
|
||||
return NoOpDeviceLogReader(app.name);
|
||||
return NoOpDeviceLogReader(app?.name);
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -42,6 +42,7 @@ void main() {
|
||||
expect(chromeDevice.supportsScreenshot, false);
|
||||
expect(await chromeDevice.isLocalEmulator, false);
|
||||
expect(chromeDevice.getLogReader(app: mockWebApplicationPackage), isInstanceOf<NoOpDeviceLogReader>());
|
||||
expect(chromeDevice.getLogReader(), isInstanceOf<NoOpDeviceLogReader>());
|
||||
expect(await chromeDevice.portForwarder.forward(1), 1);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user