Completed
Last Updated: 02 Jun 2016 14:31 by ADMIN
ADMIN
Daniel
Created on: 26 Apr 2016 08:41
Category: DeviceDetectionFramework
Type: Bug Report
1
Device detection framework throws an exception when user agent string is null in some cases
Here is how to reproduce the problem in a simple code snippet through the public API:

	protected override void OnInit(EventArgs e)
	{
		ScreenRanges customScreenRanges = new ScreenRanges();
		customScreenRanges.SmallScreenSizeRange = new ScreenRange(0, 100);
		customScreenRanges.MediumScreenSizeRange = new ScreenRange(101, 200);
		customScreenRanges.LargeScreenSizeRange = new ScreenRange(201, 300);
		customScreenRanges.ExtraLargeScreenSizeRange = new ScreenRange(301, 400);

		DeviceScreenSize screenSize2 = Detector.GetScreenSize(null, customScreenRanges);
	}
0 comments