diff --git a/java_console/io/src/main/java/com/rusefi/autodetect/SerialAutoChecker.java b/java_console/io/src/main/java/com/rusefi/autodetect/SerialAutoChecker.java index 692ba1ece9..1bcf5190f0 100644 --- a/java_console/io/src/main/java/com/rusefi/autodetect/SerialAutoChecker.java +++ b/java_console/io/src/main/java/com/rusefi/autodetect/SerialAutoChecker.java @@ -78,7 +78,7 @@ public class SerialAutoChecker { } } - @NotNull + @Nullable private IoStream getStreamByMode(PortDetector.DetectorMode mode) { if (mode == PortDetector.DetectorMode.DETECT_ELM327) { return SerialIoStream.openPort(serialPort);