From 7f97d41fd581d27a20ea4b40e5a284a2b4759018 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 8 Apr 2009 20:32:47 +0000 Subject: [PATCH] Fail earlier here if we have no _clobj. I have been seeing this in testing, though annoyingly now I can't reproduce it. Call Heisenberg! git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5712 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/presents/client/InvocationDirector.as | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/as/com/threerings/presents/client/InvocationDirector.as b/src/as/com/threerings/presents/client/InvocationDirector.as index 60bf3a6f5..d4803845e 100644 --- a/src/as/com/threerings/presents/client/InvocationDirector.as +++ b/src/as/com/threerings/presents/client/InvocationDirector.as @@ -181,6 +181,10 @@ public class InvocationDirector */ public function sendRequest (invOid :int, invCode :int, methodId :int, args :Array) :void { + if (_clobj == null) { // sanitus checkem + throw new Error("Can't send invocation request, have no ClientObject."); + } + // configure any invocation listener marshallers among the args for each (var arg :Object in args) { if (arg is InvocationMarshaller_ListenerMarshaller) {