Avoid ArrayIndexOutOfBoundsException.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6408 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2011-01-01 21:52:23 +00:00
parent 02899d1083
commit 55d1df93a1
@@ -149,7 +149,7 @@ public class InvocationManager
// necessary to avoid problems for legacy concrete FooProvider implementations that
// also happen to have overloaded methods with the same name as invocation service
// methods; I'm looking at you ChatProvider...
if (!ClientObject.class.isAssignableFrom(ptypes[0])) {
if (ptypes.length == 0 || !ClientObject.class.isAssignableFrom(ptypes[0])) {
continue;
}
try {