Update pushStatusHandler.js (#1543)

Fixes error thrown by #1526
This commit is contained in:
Florent Vilmart
2016-04-18 22:30:19 -04:00
committed by Drew
parent 61b62e4e9f
commit 3945e0c680

View File

@@ -67,7 +67,7 @@ export default function pushStatusHandler(config) {
results = flatten(results);
results.reduce((memo, result) => {
// Cannot handle that
if (!result.device || !result.device.deviceType) {
if (!result || !result.device || !result.device.deviceType) {
return memo;
}
let deviceType = result.device.deviceType;