【发布时间】:2015-03-25 11:23:14
【问题描述】:
在 Windows Phone 8/8.1 上,navigator.camera.getPicture 打开 photolibrary 并调用 onSuccess 回调函数,但同时引发以下错误“'System.NullReferenceException'发生在 worklight-windowsphone8.DLL ”关闭工作灯应用程序 --场景 Worklight 6.3.0 windowsphone8 环境已创建新环境。科尔多瓦 3.6 on button click Windows Phone 8/8.1 photogallery is open image is selected and photoalbum closes and I see the length in alert 但同时引发上述错误。
--code on button click
function onClickB(){
navigator.camera.getPicture(onSuccess, onFail, {
quality : 20,
destinationType : navigator.camera.DestinationType.DATA_URL,
sourceType : navigator.camera.PictureSourceType.PHOTOLIBRARY
});
function onSuccess(imageData)
{
alert(imageData.length);--it gives me length Number
var VarUsedtoSendToAdapter=imageData;
}
--OnVS Debug Console get
System.NullReferenceException' occurred in worklight-windowsphone8.DLL on Continue it closes the application
【问题讨论】:
-
你能提供一些更有意义的工作吗?比如复制品,以及有关您的 Worklight 设置(版本...)等的更多信息?
-
代码,添加代码。不在评论中 - 编辑问题
-
嗨 Idan,问题已被编辑。
-
开发组应该尽快回复。
-
我们正在尝试 IBM MobileFirst studio - 6.3.0.00-20150214-1702 VS Professional 2013 Update 3 Target - Windows Phone 8.1 Lumia 930 ,异常详细信息是 System.NullReferenceException: Object reference not set to an instance的一个对象。在 IBM.Worklight。 System.Net.Browser.ClientHttpWebRequest 处的 .responseCallback(IAsyncResult asyncResult)。c__DisplayClass1d.
b__1b(Object state2)}
标签: cordova ibm-mobilefirst worklight-studio worklight-runtime