Browse Source

minor f9 fix

Nicolas Cannasse 18 years ago
parent
commit
0d9ebcc805
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/haxe/remoting/SocketConnection.hx

+ 1 - 1
std/haxe/remoting/SocketConnection.hx

@@ -194,7 +194,7 @@ class SocketConnection extends AsyncConnection {
 			var obj = js.Lib.eval(path.join("."));
 			#else error
 			#end
-			var fptr = Reflect.field(obj,fname);
+			var fptr = #if flash9 if( obj != null ) #end Reflect.field(obj,fname);
 			if( !Reflect.isFunction(fptr) )
 				throw "Calling not-a-function '"+path.join(".")+"."+fname+"'";
 			val = Reflect.callMethod(obj,fptr,args);