From e02ecf7c9a400ceba147f08e3359d19de7b8161c Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 25 Apr 2004 19:39:57 +0000 Subject: [PATCH] don't crash if there's no wxFileSystem instance git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/htmlpars.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/html/htmlpars.cpp b/src/html/htmlpars.cpp index 42101a4c0e..2bfef86812 100644 --- a/src/html/htmlpars.cpp +++ b/src/html/htmlpars.cpp @@ -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; + } -- 2.45.2