From cd5c24efe3788dbb62e4c146c49e60ecb6328844 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 13 Jun 2014 15:35:35 -0400 Subject: [PATCH] possible fix for #1688 --- src/topics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/topics.js b/src/topics.js index c0db6b4abd..4ee8a5909f 100644 --- a/src/topics.js +++ b/src/topics.js @@ -297,7 +297,7 @@ var async = require('async'), if (err) { return next(err); } - if (!Array.isArray(postData) || !postData.length) { + if (!Array.isArray(postData) || !postData.length || !postData[0]) { return next(null, []); } postData[0].index = 0;