]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlpars.cpp
rebaked after propgrid sample addition
[wxWidgets.git] / src / html / htmlpars.cpp
index a41e5358d4063f218e00f1089799ed5fcf8962ea..1274b14f6be405028368de7abf871908bbaa8fbc 100644 (file)
@@ -557,6 +557,9 @@ wxChar wxHtmlEntitiesParser::GetEntityChar(const wxString& entity) const
 {
     unsigned code = 0;
 
+    if (entity.empty())
+      return 0; // invalid entity reference
+
     if (entity[0] == wxT('#'))
     {
         // NB: parsed value is a number, so it's OK to use wx_str(), internal