mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 01:37:54 +00:00
don't assume list isn't null
This commit is contained in:
parent
44aab53c9f
commit
c584cb862d
1 changed files with 4 additions and 1 deletions
|
@ -44,7 +44,10 @@ class LitescribeAPI {
|
|||
// Check if the number of returned inscriptions equals the limit
|
||||
final list = response.data['result']['list'];
|
||||
final int total = response.data['result']['total'] as int;
|
||||
final int currentSize = list.length as int;
|
||||
int currentSize = 0;
|
||||
if (list != null) {
|
||||
currentSize = list.length as int;
|
||||
}
|
||||
|
||||
if (currentSize == size && currentSize < total) {
|
||||
// If the number of returned inscriptions equals the limit and there are more inscriptions available,
|
||||
|
|
Loading…
Reference in a new issue