1
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:
oSumAtrIX 2024-10-16 04:55:52 +02:00
parent a9f2538827
commit 1da8ae9e46
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -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.",