check if result exists before comparison
parent
f5ed23c2b7
commit
893671fa2b
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue