Merge pull request #44 from ankon/common-image-null-reverse

Fix conditions in #showEm()
This commit is contained in:
Harald Kuhr 2014-03-20 17:56:32 +01:00
commit a34a0e3f44

View File

@ -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);
} }
} }