C++: fix possible null-pointer derefs.
C++: fix possible null-pointer derefs.

Change-Id: Ie6a2398f3a9e5c26a9af1578e512da53a01d15f5
Reviewed-by: Sergey Shambir <5afd9f21689b1bc87d2db5881dad05aabfa538a9@gmail.com>
Reviewed-by: Nikolai Kosjar <9571db158ca61a0d070db010803474231fa0cbab@digia.com>

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