mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-05 04:25:29 -04:00
Merge pull request #44 from ankon/common-image-null-reverse
Fix conditions in #showEm()
This commit is contained in:
commit
a34a0e3f44
@ -439,7 +439,11 @@ public class ImageUtilTestCase extends TestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void showEm(final BufferedImage pOriginal, final BufferedImage pNotSharpened, final BufferedImage pSharpened, final BufferedImage pSharpenedDefault, final BufferedImage pSharpenedMore, final String pTitle) {
|
private void showEm(final BufferedImage pOriginal, final BufferedImage pNotSharpened, final BufferedImage pSharpened, final BufferedImage pSharpenedDefault, final BufferedImage pSharpenedMore, final String pTitle) {
|
||||||
if (pOriginal != null) {
|
if (pOriginal == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (GraphicsEnvironment.isHeadless()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -571,4 +575,4 @@ public class ImageUtilTestCase extends TestCase {
|
|||||||
assertNotNull("Image was null", image);
|
assertNotNull("Image was null", image);
|
||||||
assertTrue(image.getColorModel() instanceof IndexColorModel);
|
assertTrue(image.getColorModel() instanceof IndexColorModel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user