mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
dont show uninitialized devices (trezor t)
This commit is contained in:
parent
68239e9472
commit
3f68ca43c2
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ public class Hwi {
|
||||||
|
|
||||||
String output = execute(command);
|
String output = execute(command);
|
||||||
Device[] devices = getGson().fromJson(output, Device[].class);
|
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) {
|
} catch(IOException e) {
|
||||||
throw new ImportException(e);
|
throw new ImportException(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue