NullReferenceException .NET API

I have this HTTP request, I expected this, but WURFL is returning that. Please provide enough data to reproduce the problem.
junalmeida
Posts: 1
Joined: Mon Nov 18, 2013 5:58 am

NullReferenceException .NET API

Postby junalmeida » Mon Nov 18, 2013 6:02 am

{"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"

sriram
Posts: 161
Joined: Wed Jan 04, 2012 10:01 am

Re: NullReferenceException .NET API

Postby sriram » Mon Nov 18, 2013 11:31 am

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!
Sriram Sridharan

c1352893
Posts: 1
Joined: Fri Nov 22, 2013 6:24 pm

Re: NullReferenceException .NET API

Postby c1352893 » Fri Nov 22, 2013 6:26 pm

The problem is that IDevice.GetVirtualCapabilities() throws when Mode is Performance. No problems if Mode is Accuracy.

sm_support2
Posts: 294
Joined: Mon Jun 20, 2011 5:04 pm

Re: NullReferenceException .NET API

Postby sm_support2 » Wed Nov 27, 2013 8:38 am

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


Who is online

Users browsing this forum: No registered users and 16 guests