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

OSGi-version: BackgroundImageInformaton, could produce "NoSuchElementException" due to unchecked iterator-element #1595

Closed
speckyspooky opened this issue Mar 13, 2024 · 2 comments
Assignees
Labels
BugFix Change to correct issues
Milestone

Comments

@speckyspooky
Copy link
Contributor

With testing of the BIRT-OSGi-version 4.14 was figured out an issue with the method "BackgroundImageInformation.getImageResolution()".

The image-fetch based on an iterator isn't checked with the "hasNext()"-method and therefore an exception will be thrown if no elemnt is listed - see screen below. This case should be fetched accordingly.

osgi-background

@speckyspooky speckyspooky added the BugFix Change to correct issues label Mar 13, 2024
@speckyspooky speckyspooky added this to the 4.15 milestone Mar 13, 2024
@speckyspooky speckyspooky self-assigned this Mar 13, 2024
speckyspooky added a commit to speckyspooky/birt that referenced this issue Mar 13, 2024
@speckyspooky
Copy link
Contributor Author

Fix suggestion provided under PR #1596

@speckyspooky
Copy link
Contributor Author

Fix is merged to the master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BugFix Change to correct issues
Projects
None yet
Development

No branches or pull requests

1 participant