From fa4d42db281ff198371c672fe971efaa7c2b4ed1 Mon Sep 17 00:00:00 2001 From: Bruno Garcia Date: Tue, 16 Sep 2008 01:38:32 +0000 Subject: [PATCH] We allow you to omit this callback in the constructor, so make sure it's not null when we go to call it git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5373 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/presents/client/ResultWrapper.as | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/as/com/threerings/presents/client/ResultWrapper.as b/src/as/com/threerings/presents/client/ResultWrapper.as index 31779b2d8..4acd31c96 100644 --- a/src/as/com/threerings/presents/client/ResultWrapper.as +++ b/src/as/com/threerings/presents/client/ResultWrapper.as @@ -40,7 +40,9 @@ public class ResultWrapper extends InvocationAdapter // documentation inherited from interface ResultListener public function requestProcessed (result :Object) :void { - _processed(result); + if (_processed != null) { + _processed(result); + } } protected var _processed :Function;