From 0ee5f981f3e708246674d26f8a26fc9b6d8f5fc9 Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Tue, 1 Jan 2008 21:40:32 +0000 Subject: git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@101 119bf307-c92d-0410-89bd-8f53e6181181 --- chrome/content/redirlib.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'chrome/content/redirlib.js') diff --git a/chrome/content/redirlib.js b/chrome/content/redirlib.js index 894c088..c25f0fb 100644 --- a/chrome/content/redirlib.js +++ b/chrome/content/redirlib.js @@ -22,9 +22,13 @@ var RedirLib = { }, debug : function(str) { + if (!this._ext) { + return; //not initalized yet, _ext will be null + } + if (this._ext.prefs.debug) { this._cout.logStringMessage("%1: %2"._(this._ext.name, str)); - } + } }, -- cgit v1.2.3-70-g09d2