Skip to content

Commit 0099aad

Browse files
authored
Fix nullptr-access for uninitialized taskbar
Closes #25
1 parent 798ef2b commit 0099aad

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/autoupdatergui/updatecontroller.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,10 @@ bool UpdateController::start(DisplayLevel displayLevel)
169169
} else {
170170
if(d->displayLevel >= ExtendedInfoLevel) {
171171
if(d->displayLevel >= ProgressLevel) {
172-
d->taskbar->setProgress(-1.0);
173-
d->taskbar->setProgressVisible(true);
172+
if(d->taskbar) {
173+
d->taskbar->setProgress(-1.0);
174+
d->taskbar->setProgressVisible(true);
175+
}
174176
d->checkUpdatesProgress = new ProgressDialog{d->window};
175177
connect(d->checkUpdatesProgress.data(), &ProgressDialog::canceled, this, [this](){
176178
d->wasCanceled = true;

0 commit comments

Comments
 (0)