check just in case

This commit is contained in:
barisusakli
2014-09-05 13:51:02 -04:00
parent ba32a4dc4f
commit bc00d7d159

View File

@@ -73,9 +73,9 @@ function getMainPids(tids, callback) {
if (err) { if (err) {
return callback(err); return callback(err);
} }
topics = topics.map(function(topics) { topics = topics.map(function(topic) {
return topics.mainPid; return topic && topic.mainPid;
}); }).filter(Boolean);
callback(null, topics); callback(null, topics);
}); });
} }