aboutsummaryrefslogtreecommitdiff
path: root/commands/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/util.go')
-rw-r--r--commands/util.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/util.go b/commands/util.go
index ffc5ed6c..f3f9bc83 100644
--- a/commands/util.go
+++ b/commands/util.go
@@ -188,6 +188,9 @@ func MsgInfoFromUids(store *lib.MessageStore, uids []uint32) ([]*models.MessageI
if !ok {
return nil, fmt.Errorf("uid not found")
}
+ if infos[i] == nil {
+ return nil, fmt.Errorf("message store not ready yet")
+ }
}
return infos, nil
}