File r904282.diff of Package kdepimlibs4
Subject: fixcrash if data() returns null
From: wstephenson@suse.de
Bug: CID:3969
Patch-upstream: 904282
--- kcal/icaltimezones.cpp (revision 904281)
+++ kcal/icaltimezones.cpp (revision 904282)
@@ -271,7 +271,8 @@ bool ICalTimeZone::update( const ICalTim
return false;
}
- setData( other.data()->clone(), other.source() );
+ KTimeZoneData* otherData = other.data() ? other.data()->clone() : 0;
+ setData( otherData, other.source() );
return true;
}
Index: kcal/icaltimezones.cpp
===================================================================