commit 03d211e51f88c3d2cf26e165d45119f2f28d3731 Author: Arno Rehn Date: Sat Dec 3 17:57:43 2011 +0100 fix a crash when generating the akonadi bindings BUG: 283677 diff --git type_compiler.cpp type_compiler.cpp index 6ebf602..6e4ab70 100644 --- type_compiler.cpp +++ type_compiler.cpp @@ -191,6 +191,8 @@ void TypeCompiler::visitParameterDeclaration(ParameterDeclarationAST* node) void TypeCompiler::visitPtrOperator(PtrOperatorAST* node) { + if ( ! m_session->token_stream ) return; + if ( ! token_text(m_session->token_stream->kind(node->op)) ) return; if (token_text(m_session->token_stream->kind(node->op))[0] == '*') { QPair cv = m_visitor->parseCv(node->cv); pointerDepth.append(cv.first);