From 0f00a12eff978ae7c626d1f1fedf0eba4ac154fd Mon Sep 17 00:00:00 2001 From: Dan Mosedale Date: Thu, 29 May 2014 21:13:49 +0100 Subject: [PATCH] No bug - Bandaid to make registration work right; real fix coming in bug 1017394, rs=Standard8 --- browser/components/loop/MozLoopService.jsm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/browser/components/loop/MozLoopService.jsm b/browser/components/loop/MozLoopService.jsm index 1655acaac3d..9783f8dda2a 100644 --- a/browser/components/loop/MozLoopService.jsm +++ b/browser/components/loop/MozLoopService.jsm @@ -259,7 +259,9 @@ let MozLoopServiceInternal = { } // We need to register, so save the callback. - this.registrationCallbacks.push(callback); + if (callback) { + this.registrationCallbacks.push(callback); + } // If we're already in progress, just return straight away. if (this.registrationInProgress) {