Skip to content

Commit

Permalink
fix: Check for null when no device serial was specified
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Oct 16, 2024
1 parent a9f2538 commit 1da8ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/app/revanced/cli/command/PatchCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down

0 comments on commit 1da8ae9

Please sign in to comment.