Skip to content

Commit 1da8ae9

Browse files
committed
fix: Check for null when no device serial was specified
1 parent a9f2538 commit 1da8ae9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/app/revanced/cli/command/PatchCommand.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ internal object PatchCommand : Runnable {
255255
AdbInstaller(deviceSerial)
256256
}
257257
} catch (e: DeviceNotFoundException) {
258-
if (deviceSerial!!.isNotEmpty()) {
258+
if (deviceSerial?.isNotEmpty() == true) {
259259
logger.severe(
260260
"Device with serial $deviceSerial not found to install to. " +
261261
"Ensure the device is connected and the serial is correct when using the --install option.",

0 commit comments

Comments
 (0)