mirror of
https://github.com/revanced/revanced-cli
synced 2024-12-04 04:35:17 +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)
|
||||
}
|
||||
} catch (e: DeviceNotFoundException) {
|
||||
if (deviceSerial!!.isNotEmpty()) {
|
||||
if (deviceSerial?.isNotEmpty() == true) {
|
||||
logger.severe(
|
||||
"Device with serial $deviceSerial not found to install to. " +
|
||||
"Ensure the device is connected and the serial is correct when using the --install option.",
|
||||
|
Loading…
Reference in New Issue
Block a user