summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2017-05-14 10:34:25 (GMT)
committer Slávek Banko <slavek.banko@axis.cz>2017-05-14 10:34:25 (GMT)
commiteecb4690f18650b9139071301db63a24e6da0e39 (patch)
tree3e2c0a8fd5ea176d2faa20de5a518f6611cb6bec
parent27787971c73ffcecd7fc8c894e843affb4313f38 (diff)
downloadtdepim-eecb4690.zip
tdepim-eecb4690.tar.gz
Fix crash on NULL pointer dereferenceHEADorigin/masterorigin/HEADmaster
This resolves Bug 2773 Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--korganizer/koeditorfreebusy.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/korganizer/koeditorfreebusy.cpp b/korganizer/koeditorfreebusy.cpp
index 0ee9d4f..88c5414 100644
--- a/korganizer/koeditorfreebusy.cpp
+++ b/korganizer/koeditorfreebusy.cpp
@@ -850,10 +850,13 @@ void KOEditorFreeBusy::removeAttendee()
void KOEditorFreeBusy::clearSelection() const
{
KDGanttViewItem *item = mGanttView->selectedItem();
- if ( item )
+ if (item) {
mGanttView->setSelected( item, false );
+ }
mGanttView->repaint();
- item->repaint();
+ if (item) {
+ item->repaint();
+ }
}
void KOEditorFreeBusy::setSelected( int index )