Re:App suddenly crashing on startup due to FBSDKRestrictiveD...
by x86_64Ubuntu on Friday July 10, 2020 @09:38AM
(#23791337)
That's amateur hour stuff. Every developer in pretty much every language or platform learns VERY quickly what happens when you don't do a null check.
[ Parent
| on HN ]
Re:App suddenly crashing on startup due to FBSDKRestrictiveD...
by blago on Friday July 10, 2020 @10:23AM
(#23791739)
NSNull is not the null you think
Re:App suddenly crashing on startup due to FBSDKRestrictiveD...
by x86_64Ubuntu on Friday July 10, 2020 @10:58AM
(#23792124)
It may not be a conventional null, but I'm not aware of any tech where calling "count" on a Null, .nil? or otherwise null-like construct won't end horribly.
Re:App suddenly crashing on startup due to FBSDKRestrictiveD...
by plorkyeran on Friday July 10, 2020 @11:54AM
(#23792813)
The Facebook SDK is written in obj-c, where calling `count` on `nil` is perfectly valid and returns 0. It only doesn't work on NSNull, which is a weird different thing that does not work like the language's built-in null.