summaryrefslogtreecommitdiff
path: root/system/db/content.go
diff options
context:
space:
mode:
Diffstat (limited to 'system/db/content.go')
-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 7337f0f..714e0c6 100644
--- a/system/db/content.go
+++ b/system/db/content.go
@@ -214,6 +214,10 @@ func Query(namespace string, opts QueryOptions) [][]byte {
var posts [][]byte
store.View(func(tx *bolt.Tx) error {
b := tx.Bucket([]byte(namespace))
+ if b == nil {
+ return nil
+ }
+
c := b.Cursor()
n := b.Stats().KeyN