3breadt / dd-plist

A java library providing support for ASCII, XML and binary property lists.
Other
258 stars 94 forks source link

Adding NULL to an NSSet causes a NullReferenceException #79

Closed 3breadt closed 1 year ago

3breadt commented 1 year ago

Part of Issue #74

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.

To support adding NULL objects to an NSSet a new type NSNull (compare https://developer.apple.com/documentation/foundation/nsnull) could be introduced.