Index: DecimalFormatTest.java =================================================================== --- DecimalFormatTest.java (revision 428654) +++ DecimalFormatTest.java (working copy) @@ -1570,4 +1570,17 @@ assertTrue(number instanceof Double); assertTrue(Double.isInfinite(number.doubleValue())); } + + /** + * Test if setDecimalFormatSymbols method wont throw NullPointerException + * when it is called with null parameter. + */ + public void testSetDecimalFormatSymbolsAsNull(){ + try { + DecimalFormat format = (DecimalFormat)DecimalFormat.getInstance(); + format.setDecimalFormatSymbols(null); + } catch (Exception e) { + fail("Unexpected exception caught: " + e); + } + } }