Fixed: Do not setObject: forKey: when object or key is nil

This commit is contained in:
Martin Carlberg committed 2013-02-28 22:59:11 +01:00
1 parent 6ee3a395fb
commit 64fb0934a4
1 file changed
+2 -1
+2 -1
View File
@@ -503,7 +503,8 @@ var _CPKeyedArchiverEncodeObject = function(self, anObject, isConditional)
}
}
[self._replacementObjects setObject:object forKey:GUID];
if (object != nil && GUID != nil)
[self._replacementObjects setObject:object forKey:GUID];
}
// If we still don't have an object by this point, then return a