Skip to content

Commit 572df81

Browse files
Prevent another fatal exception on statistics update
This is associated to #190.
1 parent e76a5f7 commit 572df81

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

code/Inbox.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,10 @@ public async Task UpdateStatistics() {
427427
// prevent statistics error (mainly due to scheduler setting)
428428
if (User == null) {
429429
User = await UI.GmailService.Connect();
430+
}
431+
432+
// retrieve the current inbox
433+
if (Box == null) {
430434
Box = await User.Labels.Get("me", "INBOX").ExecuteAsync();
431435
}
432436

0 commit comments

Comments
 (0)