From 059406396dccb8d3690cebac1f9b7760d6c3c56e Mon Sep 17 00:00:00 2001 From: Sebastien Pouliot Date: Wed, 1 May 2013 16:19:44 -0400 Subject: [PATCH] [ios] throw an TimeZoneNotFoundException if the timezone name is unknown --- mcs/class/System.Core/System/TimeZoneInfo.MonoTouch.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcs/class/System.Core/System/TimeZoneInfo.MonoTouch.cs b/mcs/class/System.Core/System/TimeZoneInfo.MonoTouch.cs index 8415f5fc854..b0b5faa8af2 100644 --- a/mcs/class/System.Core/System/TimeZoneInfo.MonoTouch.cs +++ b/mcs/class/System.Core/System/TimeZoneInfo.MonoTouch.cs @@ -69,7 +69,7 @@ namespace System { int size = 0; IntPtr data = monotouch_timezone_get_data (name, ref size); if (size <= 0) - return Stream.Null; + throw new TimeZoneNotFoundException (); unsafe { var s = new UnmanagedMemoryStream ((byte*) data, size); -- 2.11.4.GIT