We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16d9674 commit 64ae5cfCopy full SHA for 64ae5cf
lib/common/mobile/android/logcat-helper.ts
@@ -61,7 +61,7 @@ export class LogcatHelper implements Mobile.ILogcatHelper {
61
private async getLogcatStream(deviceIdentifier: string, pid?: string) {
62
const device = await this.$devicesService.getDevice(deviceIdentifier);
63
const minAndroidWithLogcatPidSupport = "7.0.0";
64
- const isLogcatPidSupported = semver.gte(semver.coerce(device.deviceInfo.version), minAndroidWithLogcatPidSupport);
+ const isLogcatPidSupported = !!device.deviceInfo.version && semver.gte(semver.coerce(device.deviceInfo.version), minAndroidWithLogcatPidSupport);
65
const adb: Mobile.IDeviceAndroidDebugBridge = this.$injector.resolve(DeviceAndroidDebugBridge, { identifier: deviceIdentifier });
66
const logcatCommand = ["logcat"];
67
0 commit comments