mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2025-04-09 04:18:17 +02:00
dont show uninitialized devices (trezor t)
This commit is contained in:
parent
68239e9472
commit
3f68ca43c2
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user