]> git.saurik.com Git - wxWidgets.git/commitdiff
don't crash if there's no wxFileSystem instance
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 25 Apr 2004 19:39:57 +0000 (19:39 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 25 Apr 2004 19:39:57 +0000 (19:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/htmlpars.cpp

index 42101a4c0eb77c35db67b7fa87f71662b0f7b8ee..2bfef86812d478a58ffb525f48ef65ba547b80cf 100644 (file)
@@ -856,7 +856,8 @@ wxChar wxHtmlEntitiesParser::GetEntityChar(const wxString& entity)
 wxFSFile *wxHtmlParser::OpenURL(wxHtmlURLType WXUNUSED(type), 
                                 const wxString& url) const
 {
-    return GetFS()->OpenFile(url);
+    return m_FS ? m_FS->OpenFile(url) : NULL;
+    
 }