Bug 87798

Summary: Korganizer crashes on undo when no resource available
Product: [Applications] korganizer Reporter: Cornelius Schumacher <schumacher>
Component: generalAssignee: Cornelius Schumacher <schumacher>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Cornelius Schumacher 2004-08-22 23:18:31 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

Add an event, disable all resources, select undo -> crash.
Comment 1 Tobias Koenig 2004-08-24 22:53:02 UTC
CVS commit by tokoe: 

Fixed crash mentioned in 87798.

CCMAIL:87798-done@bugs.kde.org


  M +2 -1      history.cpp   1.5


--- kdepim/korganizer/history.cpp  #1.4:1.5
@@ -198,4 +198,5 @@ void History::EntryAdd::undo()
 {
   Incidence *incidence = mCalendar->incidence( mIncidence->uid() );
+  if ( incidence )
   mCalendar->deleteIncidence( incidence );
 }