Commit 46e83b44 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Bug 736018 - [PATCH] Fix potential null pointer dereference in src/dbusxmlscanner.cpp

parent be0c23ef
......@@ -432,7 +432,7 @@ public:
m_currentEnum = 0;
}
if (EXTENSION("value"))
if (EXTENSION("value") && m_currentEnum)
{
CONDITION(!m_currentEntry, "end of value without start");
m_currentEntry->endBodyLine = lineNumber();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment