Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--browser.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/browser.py b/browser.py
index 8e1dab5..7b0ec1d 100644
--- a/browser.py
+++ b/browser.py
@@ -300,6 +300,8 @@ class Browser(WebView):
"""
get a nsIURI object and return a string with the url
"""
+ if uri == None:
+ return ''
cls = components.classes['@mozilla.org/intl/texttosuburi;1']
texttosuburi = cls.getService(interfaces.nsITextToSubURI)
return texttosuburi.unEscapeURIForUI(uri.originCharset, uri.spec)