C++: Fix crash in LookupContext::lookupType()
C++: Fix crash in LookupContext::lookupType()

Task-number: QTCREATORBUG-10019
Change-Id: I7970c2f1ea3044e11250b8dbaf9b29ba3e7f34ef
Reviewed-by: hjk <f81b91af79013637d070c18d38a75b90eaae8ba3@nokiamail.com>
Reviewed-by: Erik Verbruggen <5edfe905d082749f2ac3f4e6b42937f39f083771@digia.com>

AltarBeastiful/qt-creator,colede/qtcreator,martyone/sailfish-qtcreator,farseerri/git_code,xianian/qt-creator,Distrotech/qtcreator,danimo/qt-creator,amyvmiwei/qt-creator,amyvmiwei/qt-creator,richardmg/qtcreator,richardmg/qtcreator,richardmg/qtcreator,farseerri/git_code,xianian/qt-creator,xianian/qt-creator,amyvmiwei/qt-creator,kuba1/qtcreator,darksylinc/qt-creator,martyone/sailfish-qtcreator,richardmg/qtcreator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,colede/qtcreator,xianian/qt-creator,maui-packages/qt-creator,AltarBeastiful/qt-creator,xianian/qt-creator,maui-packages/qt-creator,colede/qtcreator,maui-packages/qt-creator,AltarBeastiful/qt-creator,colede/qtcreator,AltarBeastiful/qt-creator,martyone/sailfish-qtcreator,kuba1/qtcreator,kuba1/qtcreator,colede/qtcreator,Distrotech/qtcreator,danimo/qt-creator,martyone/sailfish-qtcreator,colede/qtcreator,kuba1/qtcreator,darksylinc/qt-creator,farseerri/git_code,danimo/qt-creator,martyone/sailfish-qtcreator,maui-packages/qt-creator,darksylinc/qt-creator,amyvmiwei/qt-creator,Distrotech/qtcreator,danimo/qt-creator,danimo/qt-creator,farseerri/git_code,omniacreator/qtcreator,colede/qtcreator,richardmg/qtcreator,darksylinc/qt-creator,martyone/sailfish-qtcreator,kuba1/qtcreator,xianian/qt-creator,maui-packages/qt-creator,xianian/qt-creator,amyvmiwei/qt-creator,Distrotech/qtcreator,darksylinc/qt-creator,darksylinc/qt-creator,kuba1/qtcreator,maui-packages/qt-creator,xianian/qt-creator,danimo/qt-creator,darksylinc/qt-creator,Distrotech/qtcreator,farseerri/git_code,Distrotech/qtcreator,omniacreator/qtcreator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,farseerri/git_code,AltarBeastiful/qt-creator,amyvmiwei/qt-creator,danimo/qt-creator,darksylinc/qt-creator,martyone/sailfish-qtcreator,AltarBeastiful/qt-creator,AltarBeastiful/qt-creator,AltarBeastiful/qt-creator,farseerri/git_code,omniacreator/qtcreator,omniacreator/qtcreator,maui-packages/qt-creator,kuba1/qtcreator,kuba1/qtcreator,omniacreator/qtcreator,xianian/qt-creator,Distrotech/qtcreator,omniacreator/qtcreator,farseerri/git_code,omniacreator/qtcreator,danimo/qt-creator,richardmg/qtcreator,danimo/qt-creator,richardmg/qtcreator,kuba1/qtcreator