Skip to content

Closes #3279 Investigate nullPointerExcetion from log#3280

Merged
lbownik merged 1 commit into
developfrom
3279_Investigate_nullPointerExcetion_from_log
May 8, 2026
Merged

Closes #3279 Investigate nullPointerExcetion from log#3280
lbownik merged 1 commit into
developfrom
3279_Investigate_nullPointerExcetion_from_log

Conversation

@lbownik
Copy link
Copy Markdown
Contributor

@lbownik lbownik commented May 7, 2026

prevented logging unsupported image format as error - this is normal situation

prevented logging unsupported image format as error - this is normal situation
@lbownik lbownik requested a review from rscipien May 7, 2026 18:26
@lbownik lbownik requested review from madryk and removed request for rscipien May 8, 2026 06:26
@lbownik lbownik assigned madryk and unassigned rscipien May 8, 2026
}
if(fullSizeImage != null) {
final int width = fullSizeImage.getWidth(null);
final int height = fullSizeImage.getHeight(null);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It is fine. However IMO it would be easier to read if we would have:

if (fullSizeImage != null) {
    return false;
}
final int width = fullSizeImage.getWidth(null);
final int height = fullSizeImage.getHeight(null);
...
return true;

I will let you decide.

@madryk madryk assigned lbownik and unassigned madryk May 8, 2026
@lbownik lbownik merged commit 7493625 into develop May 8, 2026
1 check passed
@lbownik lbownik deleted the 3279_Investigate_nullPointerExcetion_from_log branch May 8, 2026 06:59
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.

3 participants