aboutsummaryrefslogtreecommitdiff
path: root/chrome/content/redirlib.js
diff options
context:
space:
mode:
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));
- }
+ }
},