Marino Faggiana 8 жил өмнө
parent
commit
10bbf011a5

+ 5 - 1
iOSClient/FileSystem/NCManageDatabase.swift

@@ -243,7 +243,11 @@ class NCManageDatabase: NSObject {
                 let addActivity = tableActivity()
                 let addActivity = tableActivity()
                 
                 
                 addActivity.account = account
                 addActivity.account = account
-                addActivity.date = activity.date! as NSDate
+                
+                if activity.date != nil {
+                    addActivity.date = activity.date! as NSDate
+                }
+                
                 addActivity.idActivity = Double(activity.idActivity)
                 addActivity.idActivity = Double(activity.idActivity)
                 addActivity.link = activity.link
                 addActivity.link = activity.link
                 addActivity.note = activity.subject
                 addActivity.note = activity.subject