Author: ozizka(a)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) )
Show replies by date