Fix UmAlQuraCalendar static data initilaization
authorTarek Mahmoud Sayed <tarekms@microsoft.com>
Mon, 14 Mar 2016 19:28:17 +0000 (12:28 -0700)
committerTarek Mahmoud Sayed <tarekms@microsoft.com>
Mon, 14 Mar 2016 19:28:17 +0000 (12:28 -0700)
commite305f4cd1dc28b38ffd25df2ac1492394602cf6b
tree85ffb627db7f7cd9746e3d8b0365103601267333
parent78ba8616027e22717d2b0a5a33f7118e04c2e5ac
Fix UmAlQuraCalendar static data initilaization

The current way of declaring the static data is cauing null reference exception
when the static constructor get called. the reason is the static initialization
method InitDateMapping is using the static array rawData which is not really
get initilaized yet when InitDateMapping execute.

The fix is moving rawData inside InitDateMapping.

https://github.com/dotnet/corefx/issues/6774#issuecomment-196044580
src/mscorlib/corefx/System/Globalization/UmAlQuraCalendar.cs