i’ve got the following crash log error in my app:
-[NSNull length]: unrecognized selector sent to instance 0x194adc8
How do i read this? Does it mean that:
- I sent a ‘length’ message to a ‘
NSNull‘ object? - The ‘length’ method in the ‘
NSNull‘ class crashed when trying to call a selector on another class?
Also, if it is the former option, how can i get the stack trace to see which function caused this crash? That top line is the only error in my log.
Thanks
Door 1
NSNulldoes not respond tolengthYou can check the documentation for NSNull to see that this is the case.
Without having an idea of what your code base is doing I am not sure where to look, you must be calling
[NSNull null];at some point to get theNSNullobject or you are using a framework somewhere that returns this.