[embjopr-commits] EMBJOPR SVN: r650 - trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit.
embjopr-commits at lists.jboss.org
embjopr-commits at lists.jboss.org
Thu Aug 6 21:28:29 EDT 2009
Author: ozizka at redhat.com
Date: 2009-08-06 21:28:29 -0400 (Thu, 06 Aug 2009)
New Revision: 650
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java
Log:
* NPE in normalizeIfNumber() fixed
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java 2009-08-07 01:08:59 UTC (rev 649)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java 2009-08-07 01:28:29 UTC (rev 650)
@@ -875,6 +875,9 @@
/** Converts a decimal number in either english or german notation to Java-like double. */
public static String normalizeIfNumber( String val ){
+ if( null == val )
+ return null;
+
String val2 = val.replace(",", "");
// English notation - 1,322.51
if( EmbjoprTestCase.looksLikeDouble(val2) )
More information about the embjopr-commits
mailing list