aboutsummaryrefslogtreecommitdiff
path: root/chrome/content/redirlib.js
diff options
context:
space:
mode:
authorEinar Egilsson2008-01-01 21:40:32 +0000
committerEinar Egilsson2008-01-01 21:40:32 +0000
commit0ee5f981f3e708246674d26f8a26fc9b6d8f5fc9 (patch)
treecec3968640052197f028f4701f94ac7689f3e06a /chrome/content/redirlib.js
parentd30ede45e7ff0624ca4a1bcc565c344a6df23ee2 (diff)
git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@101 119bf307-c92d-0410-89bd-8f53e6181181
Diffstat (limited to 'chrome/content/redirlib.js')
-rw-r--r--chrome/content/redirlib.js6
1 files changed, 5 insertions, 1 deletions
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));
- }
+ }
},