mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-05 12:35:29 -04:00
Merge pull request #45 from ankon/imageio-jpeg-test-null
Avoid NPE when the expected tree is indeed null
This commit is contained in:
commit
7430d0053a
@ -965,6 +965,7 @@ public class JPEGImageReaderTest extends ImageReaderAbstractTestCase<JPEGImageRe
|
||||
|
||||
if (expectedTree == null) {
|
||||
assertNull(actualTree);
|
||||
return;
|
||||
}
|
||||
|
||||
assertEquals(String.format("%s: Node names differ", message), expectedTree.getNodeName(), actualTree.getNodeName());
|
||||
|
Loading…
x
Reference in New Issue
Block a user