CppEditor: Fix null pointer access

Task-number: QTCREATORBUG-17253
Change-Id: Ide3d15508a2e310c307fef68457848e869c4d2de
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Nikolai Kosjar
2016-11-15 11:57:12 +01:00
parent fd1d10987c
commit 745fc30277

View File

@@ -4817,7 +4817,7 @@ void MoveFuncDefOutside::match(const CppQuickFixInterface &interface, QuickFixOp
}
}
if (!funcAST)
if (!funcAST || !funcAST->symbol)
return;
bool isHeaderFile = false;