null check aFile otherwise we crash

This commit is contained in:
ben%bengoodger.com 2005-02-27 07:50:09 +00:00
Родитель 7f6e581258
Коммит 165f587bb7
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -67,6 +67,8 @@
<parameter name="aFile"/>
<body>
<![CDATA[
if (!aFile)
return "";
var ios = Components.classes["@mozilla.org/network/io-service;1"]
.getService(Components.interfaces.nsIIOService);
var fph = ios.getProtocolHandler("file")