mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 16:35:47 +01:00
crash fix
This commit is contained in:
@@ -61,6 +61,9 @@ module.exports = function(Topics) {
|
|||||||
return callback(err);
|
return callback(err);
|
||||||
}
|
}
|
||||||
var teasers = topics.map(function(topic, index) {
|
var teasers = topics.map(function(topic, index) {
|
||||||
|
if (!topic) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
if (tidToPost[topic.tid]) {
|
if (tidToPost[topic.tid]) {
|
||||||
tidToPost[topic.tid].index = counts[index];
|
tidToPost[topic.tid].index = counts[index];
|
||||||
if (tidToPost[topic.tid].content) {
|
if (tidToPost[topic.tid].content) {
|
||||||
|
|||||||
Reference in New Issue
Block a user