From 524f80c8a0d244993fba2aa6b2e0b04d7e95a31a Mon Sep 17 00:00:00 2001 From: Nimetu Date: Sat, 21 Jan 2017 13:29:05 +0200 Subject: [PATCH] Fixed: Crash when trying to navigate to non-existing #anchor --HG-- branch : develop --- code/nel/src/gui/group_html.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp index 1661dca20..8ec1a6651 100644 --- a/code/nel/src/gui/group_html.cpp +++ b/code/nel/src/gui/group_html.cpp @@ -5220,6 +5220,11 @@ namespace NLGUI void CGroupHTML::doBrowseAnchor(const std::string &anchor) { + if (_Anchors.count(anchor) == 0) + { + return; + } + CInterfaceElement *pIE = _Anchors.find(anchor)->second; if (pIE) {