New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add nil detect in toStringWithQuotesEscaped to prevent crash #158
base: master
Are you sure you want to change the base?
Conversation
Are you sure this code is crashing? It should just return nil since a method was called on a nil object. I also tested all places it's called from, and they don't crash with nil arguments. |
er.. I'm not so sure. But i got a crash report like this, maybe we can discuss:
this crash is based on version 1.5.2. |
Please test it on the latest version first, as The error you posted is happening because a non-string is being passed to |
OK, forget this pull request. But if a non-string is being passed to |
Yes, but the more important question is what non-string is being passed to it and why. If you encounter the crash in the latest version, please put an NSLog in |
when field.name is nil, it will crash.