Skip to content

use .null? to test NULL pointer returns #420

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

Merged
merged 4 commits into from
Jul 17, 2025
Merged

use .null? to test NULL pointer returns #420

merged 4 commits into from
Jul 17, 2025

Conversation

jcupitt
Copy link
Member

@jcupitt jcupitt commented Jul 17, 2025

we were using .nil? in a couple of cases

see #419

thanks dloebl

we were using `.nil?` in a couple of cases

see #419

thanks dloebl
@jcupitt
Copy link
Member Author

jcupitt commented Jul 17, 2025

@dloebl I added your coffee GIF to the samples, I hope that's OK.

If anyone could double-check that I got all the possible null pointers, that'd be great.

@dloebl
Copy link

dloebl commented Jul 17, 2025

I added your coffee GIF to the samples, I hope that's OK.

Thanks! That's fine. It's a public domain (CC0) image I got from here and altered some bytes to make it invalid: https://pixabay.com/gifs/coffee-cup-mug-pixel-art-steam-19613

If anyone could double-check that I got all the possible null pointers, that'd be great.

Looks good to me! I've searched through the code as well and wasn't able to find other instances

@jcupitt jcupitt merged commit 726357f into master Jul 17, 2025
22 checks passed
@jcupitt jcupitt deleted the better-null-test branch July 17, 2025 13:19
@jcupitt
Copy link
Member Author

jcupitt commented Jul 17, 2025

\o/ thanks for the review!

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.

2 participants