Skip to content

Fix null return from PngDescriptor.getBackgroundColorDescription() - #325

Merged
drewnoakes merged 1 commit into
drewnoakes:masterfrom
nagix:issue-325
Mar 19, 2018
Merged

Fix null return from PngDescriptor.getBackgroundColorDescription()#325
drewnoakes merged 1 commit into
drewnoakes:masterfrom
nagix:issue-325

Conversation

@nagix

@nagix nagix commented Mar 14, 2018

Copy link
Copy Markdown
Collaborator

Problem

PngDescriptor.getBackgroundColorDescription() always returns null even if TAG_BACKGROUND_COLOR has some value. This is because the code checks the TAG_COLOR_TYPE value, but it exists in the different directory (PNG-IHDR).

Solution

Return the description based on the length of the byte array. I also added a few tests for PngDescriptor.

@drewnoakes
drewnoakes merged commit 7080a13 into drewnoakes:master Mar 19, 2018
@drewnoakes

Copy link
Copy Markdown
Owner

Great, thanks!

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