Index: modules/swing/src/test/api/java/common/javax/swing/text/ElementIteratorTest.java =================================================================== --- modules/swing/src/test/api/java/common/javax/swing/text/ElementIteratorTest.java (revision 454637) +++ modules/swing/src/test/api/java/common/javax/swing/text/ElementIteratorTest.java (working copy) @@ -76,6 +76,13 @@ assertSame(root, iterator.first()); assertNull(iterator.previous()); assertSame(root, iterator.current()); + // Regression for HARMONY-1811 + try { + ElementIterator obj = new ElementIterator((Document)null); + fail("NullPointerException should be thrown"); + } catch (NullPointerException e) { + //expected + } } /*