diff options
Diffstat (limited to 'system/db/init.go')
-rw-r--r-- | system/db/init.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/system/db/init.go b/system/db/init.go index 0e640b1..9125d3b 100644 --- a/system/db/init.go +++ b/system/db/init.go @@ -92,6 +92,9 @@ func SystemInitComplete() bool { err := store.View(func(tx *bolt.Tx) error { users := tx.Bucket([]byte("__users")) + if users == nil { + return bolt.ErrBucketNotFound + } err := users.ForEach(func(k, v []byte) error { complete = true |