Page 1 of 1

NullReferenceException .NET API

Posted: Mon Nov 18, 2013 6:02 am
by junalmeida
{"Object reference not set to an instance of an object."}
at WURFL.Resource.Virtual.VirtualCapabilityUserAgentTool.CompileProperties(VirtualCapabilityDevice device, String userAgent)
at Wurfl.Resource.Virtual.Matchers.AdvertisedBrowserVirtualMatcher.Compute(IDevice device)
at WURFL.Resource.VirtualCapabilities.GetValue(String virtualCapability, IDevice device, String originalUserAgent)

device.GetVirtualCapability("advertised_browser");


HttpContext.Current.Request.UserAgent
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.69 Safari/537.36"

Re: NullReferenceException .NET API

Posted: Mon Nov 18, 2013 11:31 am
by sriram
Hi there!

Could you tell us what version of the WURFL .NET API you are on? This information will help us look into this error.

Cheers!

Re: NullReferenceException .NET API

Posted: Fri Nov 22, 2013 6:26 pm
by c1352893
The problem is that IDevice.GetVirtualCapabilities() throws when Mode is Performance. No problems if Mode is Accuracy.

Re: NullReferenceException .NET API

Posted: Wed Nov 27, 2013 8:38 am
by sm_support2
Thank you. We have released 1.5.0.3 that fixes the issue you have encountered. Please let us know if this works for you.

Thanks