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

Resetting the reader throws a NullPointerException #47

Open
cdokolas opened this issue Jul 1, 2024 · 0 comments
Open

Resetting the reader throws a NullPointerException #47

cdokolas opened this issue Jul 1, 2024 · 0 comments

Comments

@cdokolas
Copy link

cdokolas commented Jul 1, 2024

If a client calls the reader's reset() method, the following exception is thrown

NullPointerException: Cannot invoke "javax.imageio.stream.ImageInputStream.getStreamPosition()" because "this.iis" is null

It is apparent that J2KImageReader.setInput() ignores the possibility that the input parameter may be null, as it will be when called by ImageReader.reset() (the base class).

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

No branches or pull requests

1 participant