fix index out of bounds

This commit is contained in:
Milos Kozak 2019-10-26 11:48:43 +02:00
parent 044a958340
commit 7233497dc9

View file

@ -788,7 +788,7 @@ public class MedtronicCommunicationManager extends RileyLinkCommunicationManager
return false;
}
if (responseRaw.length == 1) {
if (responseRaw.length < 2) {
return false;
}