changeset in /hg/icedtea6: - Handle null args to call() (bug# 217).

Deepak Bhole dbhole at redhat.com
Fri Oct 17 11:16:41 PDT 2008


changeset 776f84548857 in /hg/icedtea6
details: http://icedtea.classpath.org/hg/icedtea6?cmd=changeset;node=776f84548857
description:
	- Handle null args to call() (bug# 217).

diffstat:

2 files changed, 8 insertions(+)
ChangeLog                                        |    5 +++++
plugin/icedtea/netscape/javascript/JSObject.java |    3 +++

diffs (25 lines):

diff -r 8ea55953d4df -r 776f84548857 ChangeLog
--- a/ChangeLog	Fri Oct 17 19:20:38 2008 +0200
+++ b/ChangeLog	Fri Oct 17 13:45:31 2008 -0400
@@ -1,3 +1,8 @@ 2008-10-17  Matthias Klose  <doko at ubuntu
+2008-10-17  Deepak Bhole  <dbhole at redhat.com>
+
+	* plugin/icedtea/netscape/javascript/JSObject.java: Handle null args to
+	call() (bug# 217).
+
 2008-10-17  Matthias Klose  <doko at ubuntu.com>
 
 	* IcedTeaPlugin.cc: Don't use open if's in macros; cache getenv() call.
diff -r 8ea55953d4df -r 776f84548857 plugin/icedtea/netscape/javascript/JSObject.java
--- a/plugin/icedtea/netscape/javascript/JSObject.java	Fri Oct 17 19:20:38 2008 +0200
+++ b/plugin/icedtea/netscape/javascript/JSObject.java	Fri Oct 17 13:45:31 2008 -0400
@@ -186,6 +186,9 @@ public final class JSObject {
      */
     public Object	call(String methodName, Object args[])
     {
+    	if (args == null)
+    		args = new Object[0];
+
         System.err.print ("JSObject.call " + methodName);
         for (int i = 0; i < args.length; i++)
             System.err.print (" " + args[i]);



More information about the distro-pkg-dev mailing list