dont show uninitialized devices (trezor t)

This commit is contained in:
Craig Raw 2020-09-01 08:04:58 +02:00
parent 68239e9472
commit 3f68ca43c2

View file

@ -44,7 +44,7 @@ public class Hwi {
String output = execute(command);
Device[] devices = getGson().fromJson(output, Device[].class);
return Arrays.asList(devices);
return Arrays.stream(devices).filter(device -> device != null && device.getModel() != null).collect(Collectors.toList());
} catch(IOException e) {
throw new ImportException(e);
}