[kaffe] CVS kaffe (kaz): libraries/javalib/java/text/MessageFormat.java

Kaffe CVS cvs-commits at kaffe.org
Tue Jun 15 15:43:02 PDT 2004


PatchSet 4848 
Date: 2004/06/15 21:55:42
Author: kaz
Branch: HEAD
Tag: (none) 
Log:
i2004-06-15  Ito Kazumitsu  <kaz at maczuka.gcd.org>

        * libraries/javalib/java/text/MessageFormat.java
        (formatInternal) Added "arguments == null ||" to the checking
        of the availability of the argument.

Members: 
	ChangeLog:1.2415->1.2416 
	libraries/javalib/java/text/MessageFormat.java:1.26->1.27 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2415 kaffe/ChangeLog:1.2416
--- kaffe/ChangeLog:1.2415	Tue Jun 15 18:42:51 2004
+++ kaffe/ChangeLog	Tue Jun 15 21:55:42 2004
@@ -1,3 +1,9 @@
+2004-06-15  Ito Kazumitsu  <kaz at maczuka.gcd.org>
+
+	* libraries/javalib/java/text/MessageFormat.java
+	(formatInternal) Added "arguments == null ||" to the checking
+	of the availability of the argument.
+
 2003-06-15  Dalibor Topic  <robilad at kaffe.org>
 
         * libraries/javalib/java/util/ResourceBundle.java:
Index: kaffe/libraries/javalib/java/text/MessageFormat.java
diff -u kaffe/libraries/javalib/java/text/MessageFormat.java:1.26 kaffe/libraries/javalib/java/text/MessageFormat.java:1.27
--- kaffe/libraries/javalib/java/text/MessageFormat.java:1.26	Tue Jun 15 14:49:21 2004
+++ kaffe/libraries/javalib/java/text/MessageFormat.java	Tue Jun 15 21:55:46 2004
@@ -416,7 +416,7 @@
       {
 	Object thisArg = null;
 	boolean unavailable = false;
-	if (elements[i].argNumber >= arguments.length)
+	if (arguments == null || elements[i].argNumber >= arguments.length)
 	  unavailable = true;
 	else
 	  thisArg = arguments[elements[i].argNumber];




More information about the kaffe mailing list