diff options
author | Lincoln Ramsay <lincoln.ramsay@nokia.com> | 2012-05-28 12:04:34 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-28 04:58:32 +0200 |
commit | f6a6c002a6b549b77894caee46abb97b89268729 (patch) | |
tree | 9616eca8fcd9877784aa3c8cd1f0679d10c7573a /src/plugins/sensors/simulator/simulatorlightsensor.cpp | |
parent | 609615ffbc791f2ea938e5a514c8fdcc9e761f82 (diff) |
Check for Q_GLOBAL_STATIC returning 0 (QtSensors).
It's probably not very likely but during app shutdown, the
Q_GLOBAL_STATIC used in sensors will start returning 0. Check for this
to avoid the chance of a crash.
Change-Id: If2c235b158c36339e35e40074a5b33dbe21a7726
Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
Diffstat (limited to 'src/plugins/sensors/simulator/simulatorlightsensor.cpp')
0 files changed, 0 insertions, 0 deletions