From: Scott H. <sco...@us...> - 2005-06-29 08:16:23
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9089/src/org/actionstep Modified Files: ASStringFormatter.as Log Message: Added an arg check for null, so we don't continue formatting unnecessarily. Index: ASStringFormatter.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/ASStringFormatter.as,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ASStringFormatter.as 29 Jun 2005 08:12:41 -0000 1.2 --- ASStringFormatter.as 29 Jun 2005 08:16:11 -0000 1.3 *************** *** 160,163 **** --- 160,167 ---- arg = en.nextObject(); // Get argument to format + + if (arg == null) // We can't do anything else if there are no more args. + break; + precision = parseInt(format.substring(precisionstart + 1, end)); // extract precision fstr = g_types[format.charAt(end)](flags, parseInt(width), width.charAt(0) == "0", precision, arg); |