tuarua / WebViewANE

WebView Adobe Air Native Extension for macOS 10.10+, Windows Desktop, iOS 9.0+ and Android 19+. This ANE provides access to a more modern webview from AIR.
Apache License 2.0
183 stars 53 forks source link

Error: Object reference not set to an instance of an object when get getter tabDetails is used #128

Closed barnabeus closed 6 years ago

barnabeus commented 6 years ago

Exception returned: Error: Object reference not set to an instance of an object. at flash.external::ExtensionContext/_call() at flash.external::ExtensionContext/call() at com.tuarua::WebViewANE/get tabDetails()[D:\dev\flash\WebViewANE\native_extension\src\com\tuarua\WebViewANE.as:726] at Project_1/onPropertyChange()[D:\Project_1_sdk_28\Projekt\src\Project_1.as:1426] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at com.tuarua::WebViewANE/gotEvent()[D:\dev\flash\WebViewANE\native_extension\src\com\tuarua\WebViewANE.as:146]


I tried to get it on different stages:

The file and scripts loads fine, its just that this getter is not working and I can't access current tab URL. What could be the issue?

Attached VERBOSE debug.log from CEF too.

debug.log

tuarua commented 6 years ago

Thanks for the detailed report. This is a bug. I was also made aware of this yesterday by an other user. I am working on a fix and it will be fixed in next version (in next few days)

barnabeus commented 6 years ago

Perfect :) Umm any previous releases are free of this bug? I need at least a release supporting SDK 28, want to test some of its functionalities tomorrow. I see SDK 28 was supported since 1.1.0. So the question is when did you remove deprecated .url .title properties from main WebView class? I guess 1.0.0, but maybe Im lucky and it was 1.1.0+ 💃 ?

Oh also noticed differences in CHANGELOG and https://github.com/tuarua/WebViewANE/releases description for SDK 28: https://i.imgur.com/TZ99kTo.png

Ops, found it myself. Actually directly accessed properties like url and title are gone since 0.0.30: https://github.com/tuarua/WebViewANE/commit/3c957384d66261656d9207ae92f3007cfe555474#diff-ebf5cb921075ead370a8ab38db939dd7

tuarua commented 6 years ago

I added tabs in version 0.0.25. So it could be anywhere after that. The AIR version is not that important for Windows version. The ANE is backward/forward compatible with AIR. The next version will have it's example compiled to AIR 29 but will work with 28,27,26 etc

barnabeus commented 6 years ago

"The ANE is backward/forward compatible with AIR."

Ahh yes, that's true. It just went out smoothly when i reverted the files. I misunderstood the notice when I was exporting release build in Flash Builder. It was something around "ANE not working with this SDK version" thing. Or it was already too late for me :D Either way, I can now test SDK 28 features with pre v1 of your ANE. Thanks again for a great work. I'm looking forward to 1.4.0 now :)

tuarua commented 6 years ago

1.4.0 was released today. Issue should be fixed

barnabeus commented 6 years ago

Thanks for the info. I will test it today or tomorrow and let you know, so you can close the issue :)

barnabeus commented 6 years ago

Question: Since 0.0.33 these MS libraries were also updated, or they are the same for newer versions: image

tuarua commented 6 years ago

The MS libraries (.NET 4.6+ and C++ 2013 and 2015) are the same