altosdroid: protect USB read/write when connection is null
authorKeith Packard <keithp@keithp.com>
Wed, 19 May 2021 17:50:22 +0000 (10:50 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 19 May 2021 17:53:45 +0000 (10:53 -0700)
commit9eb0fbd7eff5694064f9d123220b523a98fef0a4
tree4f0dc79d2353a9cc3238eea9fc757fb947ff6b0d
parent55a820e517f9705bc80c653b456ce5d8b3a634bc
altosdroid: protect USB read/write when connection is null

Check to see if connection is valid before attempting to read/write to
it.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosdroid/app/src/main/java/org/altusmetrum/AltosDroid/AltosUsb.java