Sorry Alex, you are right, i am going to check it send you the right one.
Thanks Serkan Android için Outlook'u edinin Kimden: Alex Harui Gönderildi: 12 Nisan Cuma 19:29 Konu: Re: Work on Emulation Kime: users@royale.apache.org In your earlier email, you showed source code like this: service.headers = {Authorization:”Basic “ + encoder.toString()} as Array; Now you are saying the source code is: service.headers = {Authorization:”Basic “ + encoder.toString()} Certainly the first one with “as Array” would result in a call to Language.as and return null since the expression is a Object and not an Array. The second one should not result in a call to Language.as. Please verify that you have updated the .JS files and the debugger is using those files. Then try single-stepping to see when various expressions return null, or use the console to evaluate expressions, or break up that line of code into sub-expressions to see which one is null, such as: var foo:String = “Basic”: var bar:String = encoder.toString(); var baz:Object = {}; baz.Authorization = bar; service.headers = baz; HTH, -Alex From: Serkan Taş <serkan....@likyateknoloji.com> Reply-To: "users@royale.apache.org" <users@royale.apache.org> Date: Friday, April 12, 2019 at 1:58 AM To: "users@royale.apache.org" <users@royale.apache.org> Subject: Re: Work on Emulation It is not string or Array, but "Object" Here is the code piece in source "as" file : //---------------------------------- // headers //---------------------------------- private var _headers:Object = {}; [Inspectable(defaultValue="undefined", category="General")] /** * Custom HTTP headers to be sent to the third party endpoint. If multiple headers need to * be sent with the same name the value should be specified as an Array. * * @langversion 3.0 * @playerversion Flash 9 * @playerversion AIR 1.1 * @productversion Flex 3 */ public function get headers():Object { return _headers; } public function set headers(value:Object):void { _headers = value; } In flex version debug view, it is evaluated as below : Thanks, Serkan 12.04.2019 06:16 tarihinde Alex Harui yazdı: It looks like a String is passed in to see if it an Array. Should service.headers be an array or string? -Alex From: Serkan Taş <serkan....@likyateknoloji.com> Reply-To: "users@royale.apache.org" <users@royale.apache.org> Date: Wednesday, April 10, 2019 at 5:41 AM To: "users@royale.apache.org" <users@royale.apache.org> Subject: Re: Work on Emulation Alex, thank you for PR-406. Regarding our last conversation about the Basic Authentication, do you have an idea why the evaluation is null ? Here is the piece in ActionScript : service.headers = {Authorization:"Basic " + encoder.toString()} as Array; Thanks in advance, Serkan