check if result exists before comparison

10.3.x-maintenance
cTn 2014-09-01 14:46:46 +02:00
parent f5ed23c2b7
commit 893671fa2b
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ var serial = {
switch (info.error) {
case 'system_error': // we might be able to recover from this one
var crunch_status = function (info) {
if (!info.paused) {
if (info && !info.paused) {
console.log('SERIAL: Connection recovered from last onReceiveError');
googleAnalytics.sendException('Serial: onReceiveError - recovered', false);
} else {