Skip to content

Fix getImage(s)Blob() return type #735

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HypeMC
Copy link

@HypeMC HypeMC commented Apr 18, 2025

PR #616 defined the return type of getImageBlob() as nullable, but that is no longer correct because PR #606 changed it to throw an exception instead of returning null.

This PR sets the return type of getImageBlob() back to non-nullable and updates getImagesBlob() to throw an exception when it fails to get the image contents. This makes both methods behave consistently.

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.

1 participant