mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-05 04:25:29 -04:00
Fix conditions in #showEm()
* return when the pOriginal is null, not when it is non-null (Eclipse noticed a definitive NPE) * return when running in headless mode (unit tests via maven)
This commit is contained in:
parent
52aa7e974b
commit
552ab24658
@ -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) {
|
||||
if (pOriginal != null) {
|
||||
if (pOriginal == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (GraphicsEnvironment.isHeadless()) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -571,4 +575,4 @@ public class ImageUtilTestCase extends TestCase {
|
||||
assertNotNull("Image was null", image);
|
||||
assertTrue(image.getColorModel() instanceof IndexColorModel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user