Deal with a null arguments array being provided to invoke().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@393 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: InvocationDirector.java,v 1.11 2001/10/03 03:42:31 mdb Exp $
|
||||
// $Id: InvocationDirector.java,v 1.12 2001/10/04 20:02:13 mdb Exp $
|
||||
|
||||
package com.threerings.cocktail.cher.client;
|
||||
|
||||
@@ -83,6 +83,11 @@ public class InvocationDirector
|
||||
{
|
||||
int invid = nextInvocationId();
|
||||
|
||||
// if null arguments were supplied, assume zero arguments
|
||||
if (args == null) {
|
||||
args = new Object[0];
|
||||
}
|
||||
|
||||
// we need an args array for a message that can contain the
|
||||
// invocation names, an invocation id and the invocation arguments
|
||||
Object[] iargs = new Object[args.length+3];
|
||||
|
||||
Reference in New Issue
Block a user