You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code runs fine on Apple platforms and filters for the second array entry, but with GNUstep it raises an exception Unable to find value for key "key" of object <null> (NSNull):
Internally, we use GSKeyPathExpression to get the key using Key-Value-Coding. When following the backtrace on lldb, you end up at the super class method of evaluateWithObject: for whatever reasons.
In this case the predicate is parsed as a NSComparisonPredicate with a GSKeyPathExpression.
TLDR:
This boils down to how we handle KVCoding with NSNull.
I managed to resolve the issue by overriding the valueForUndefinedKey method in NSNull. This prevents the triggering of the default handler, which typically results in an exception.
It seems that Apple uses a similar approach in their implementation.
The following code runs fine on Apple platforms and filters for the second array entry, but with GNUstep it raises an exception
Unable to find value for key "key" of object <null> (NSNull)
:The text was updated successfully, but these errors were encountered: