Fix possible crash
Fix possible crash

I introduced this when splitting up my patchset for review.
Bad patch is 4a9130a0

Change-Id: I08729c75e0e9c5d8d345e4e0bb4dfa865fdedcaa
Reviewed-by: Tobias Hunger <012f8d714267bccc9d4766fbeace9f175fcc70c4@digia.com>

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