mirror of
https://github.com/revanced/revanced-cli.git
synced 2025-01-16 05:57:31 +01:00
fix: Check for null when no device serial was specified
This commit is contained in:
parent
a9f2538827
commit
1da8ae9e46
@ -255,7 +255,7 @@ internal object PatchCommand : Runnable {
|
|||||||
AdbInstaller(deviceSerial)
|
AdbInstaller(deviceSerial)
|
||||||
}
|
}
|
||||||
} catch (e: DeviceNotFoundException) {
|
} catch (e: DeviceNotFoundException) {
|
||||||
if (deviceSerial!!.isNotEmpty()) {
|
if (deviceSerial?.isNotEmpty() == true) {
|
||||||
logger.severe(
|
logger.severe(
|
||||||
"Device with serial $deviceSerial not found to install to. " +
|
"Device with serial $deviceSerial not found to install to. " +
|
||||||
"Ensure the device is connected and the serial is correct when using the --install option.",
|
"Ensure the device is connected and the serial is correct when using the --install option.",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user