From 8cab1d57ed412537dd576540dbbda652248b3690 Mon Sep 17 00:00:00 2001 From: monishsyed Date: Tue, 5 May 2015 11:52:05 +0530 Subject: [PATCH] Crash Fix: Check for NULL before setting a primary key value for a child entity --- Source/MMRecord/MMRecordMarshaler.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/MMRecord/MMRecordMarshaler.m b/Source/MMRecord/MMRecordMarshaler.m index db13508..8e790fe 100644 --- a/Source/MMRecord/MMRecordMarshaler.m +++ b/Source/MMRecord/MMRecordMarshaler.m @@ -71,7 +71,7 @@ + (void)setValue:(id)value onRecord:(MMRecord *)record attribute:(NSAttributeDescription *)attribute dateFormatter:(NSDateFormatter *)dateFormatter { - if (value == nil) { + if (value == nil || value == [NSNull null]) { return; }