NSSet.add(null) throws a NullReferenceException instead of an IllegalArgumentException.
Also parsing a binary property list where such a null object is encoded as part of an NSSet runs into that exception instead of throwing a PropertyListFormatException.
Part of Issue #74
NSSet.add(null)
throws aNullReferenceException
instead of anIllegalArgumentException
.Also parsing a binary property list where such a
null
object is encoded as part of anNSSet
runs into that exception instead of throwing aPropertyListFormatException
.To support adding NULL objects to an
NSSet
a new typeNSNull
(compare https://developer.apple.com/documentation/foundation/nsnull) could be introduced.