diff --git a/modules/default/updatenotification/node_helper.js b/modules/default/updatenotification/node_helper.js index 9d27875167..25c088bad8 100644 --- a/modules/default/updatenotification/node_helper.js +++ b/modules/default/updatenotification/node_helper.js @@ -65,7 +65,7 @@ module.exports = NodeHelper.create({ data.module = sg.module; if (!err) { sg.git.log({"-1": null}, function(err, data2) { - if (!err) { + if (!err && data2.latest) { data.hash = data2.latest.hash; self.sendSocketNotification("STATUS", data); }