summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/db/content.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/db/content.go b/system/db/content.go
index 0b486ba..f3397ba 100644
--- a/system/db/content.go
+++ b/system/db/content.go
@@ -199,6 +199,10 @@ func ContentAll(namespace string) [][]byte {
store.View(func(tx *bolt.Tx) error {
b := tx.Bucket([]byte(namespace))
+ if b == nil {
+ return nil
+ }
+
numKeys := b.Stats().KeyN
posts = make([][]byte, 0, numKeys)