Fix NPE in Chrome Device (#42813)
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user