null check on SerialPort.readBytes