Fix nullptr posibility in ProcessEvent

This commit is contained in:
Noah Hilverling 2018-02-07 14:24:06 +01:00 committed by Jean Flach
parent 948333225d
commit 64ffe4f840

View File

@ -41,7 +41,7 @@ void EventQueue::ProcessEvent(const Dictionary::Ptr& event)
frame.Sandboxed = true; frame.Sandboxed = true;
try { try {
if (!FilterUtility::EvaluateFilter(frame, &*m_Filter, event, "event")) if (!FilterUtility::EvaluateFilter(frame, m_Filter.get(), event, "event"))
return; return;
} catch (const std::exception& ex) { } catch (const std::exception& ex) {
Log(LogWarning, "EventQueue") Log(LogWarning, "EventQueue")