From: <rob...@us...> - 2010-08-18 05:16:41
|
Revision: 83 http://netcdftools.svn.sourceforge.net/netcdftools/?rev=83&view=rev Author: robertbridle Date: 2010-08-18 05:16:33 +0000 (Wed, 18 Aug 2010) Log Message: ----------- ANDSWRON-290 - Caught NullPointerException when an invalid variable is specified on the command line. We now throw an InvalidArgumentException instead. Modified Paths: -------------- trunk/src/test/java/au/csiro/netcdf/TestNcWriteVariable.java Modified: trunk/src/test/java/au/csiro/netcdf/TestNcWriteVariable.java =================================================================== --- trunk/src/test/java/au/csiro/netcdf/TestNcWriteVariable.java 2010-08-18 05:07:38 UTC (rev 82) +++ trunk/src/test/java/au/csiro/netcdf/TestNcWriteVariable.java 2010-08-18 05:16:33 UTC (rev 83) @@ -477,7 +477,7 @@ fail("testWriteToInvalidVariable should have failed"); } - catch (NullPointerException expected) + catch (IllegalArgumentException expected) { // this is exactly what we were expecting so // let's just ignore it and let the test pass This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |