diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2020-08-31 22:39:57 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2020-09-01 06:12:07 +0000 |
commit | 947392cde907f8a81c8313662051761a6c2ca732 (patch) | |
tree | fdc9546df7481fdd5b491c90db909925f8a40118 /src/plugins/cpptools/cpprefactoringchanges.cpp | |
parent | 6477a07654bdd498282953d8fc85c2a3e74086af (diff) | |
download | qt-creator-947392cde907f8a81c8313662051761a6c2ca732.tar.gz |
VariableChooser: Avoid null pointer access
The code makes an effort to qobject_cast a pointer and check it, yet it
accesses another pointer to do its thing.
If the currentWidget is a QPlainTextEdit, this simply crashes.
Amends: da3b83589b9
Change-Id: Ie79fa233b04c392fd5aa72cd512fcd0f0d829659
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cpprefactoringchanges.cpp')
0 files changed, 0 insertions, 0 deletions