Index: awt/src/test/api/java/common/java/awt/RobotTest.java =================================================================== --- awt/src/test/api/java/common/java/awt/RobotTest.java (revision 485572) +++ awt/src/test/api/java/common/java/awt/RobotTest.java (working copy) @@ -178,6 +178,16 @@ exceptionCaught = true; } assertFalse(exceptionCaught); + + // Regression test for HARMONY-2442 + try { + new Robot(null); + fail("IllegalArgumentException was not thrown"); //$NON-NLS-1$ + } catch (IllegalArgumentException ex) { + // expected + } catch (Exception ex) { + fail(ex.toString()); + } } public final void testCreateScreenCapture() {