Skip to content
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

Fix NSNumber() null pointer exception #28

Merged
merged 2 commits into from
Oct 13, 2021
Merged

Fix NSNumber() null pointer exception #28

merged 2 commits into from
Oct 13, 2021

Conversation

stephencelis
Copy link
Member

Fixes #27.

to target: inout TargetStream,
name: String?,
indent: Int,
maxDepth: Int
) where TargetStream: TextOutputStream {
if T.self is AnyObject.Type, withUnsafeBytes(of: value, { $0.allSatisfy { $0 == 0 } }) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if there's a better check than this 😕

@stephencelis stephencelis merged commit 21f8fdb into main Oct 13, 2021
@stephencelis stephencelis deleted the fix-null-ptr branch October 13, 2021 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NSNumber crashes CustomDump
2 participants