CppCheck: Fix possible null pointer access
CppCheck: Fix possible null pointer access

The variable is checked for 0 elsewhere in this method, so it probably
makes sense to check it here as well.

Change-Id: Idb869dda54ed340e1b2f03c7d4c06f2a93c00887
Reviewed-by: Nikolai Kosjar <9571db158ca61a0d070db010803474231fa0cbab@digia.com>

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