Fix crash on removing null ITextMark

Previously that did no harm, but due to recent changes this leads to a
crash.

Task-number: QTCREATORBUG-7270
Task-number: QTCREATORBUG-7269
Change-Id: Ibe405e33c8ae4cc8503c67fa122467332bc10f53
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Daniel Teske
2012-04-13 16:59:05 +02:00
committed by hjk
parent ccb4de15f9
commit 18177a7e1e

View File

@@ -202,7 +202,8 @@ void DisassemblerAgent::resetLocation()
return;
if (d->resetLocationScheduled) {
d->resetLocationScheduled = false;
d->editor->markableInterface()->removeMark(d->locationMark);
if (d->locationMark)
d->editor->markableInterface()->removeMark(d->locationMark);
}
}