summaryrefslogtreecommitdiffstats
path: root/kresources/carddav
diff options
context:
space:
mode:
Diffstat (limited to 'kresources/carddav')
-rw-r--r--kresources/carddav/resource.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/kresources/carddav/resource.cpp b/kresources/carddav/resource.cpp
index d8d4508d0..d974bd826 100644
--- a/kresources/carddav/resource.cpp
+++ b/kresources/carddav/resource.cpp
@@ -267,7 +267,9 @@ void ResourceCardDav::ensureReadOnlyFlagHonored() {
//enableChangeNotification();
- addressBook()->emitAddressBookChanged();
+ if (addressBook() != NULL) {
+ addressBook()->emitAddressBookChanged();
+ }
}
void ResourceCardDav::setReadOnly(bool v) {