mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-17 14:01:18 +00:00
Fixed: Do not setObject: forKey: when object or key is nil
This commit is contained in:
1 parent
6ee3a395fb
commit
64fb0934a4
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user