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)
commit29b83acfa01857b7bb3f9664bf05b957b1606538
tree75919c38753ed4eeb7527b600a9b5e1d2cb5d5e8
parent55e2032bb85c5ba187a4cfda116cbf0e96ce21b5
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

Commit migrated from https://github.com/dotnet/coreclr/commit/e305f4cd1dc28b38ffd25df2ac1492394602cf6b
src/coreclr/src/mscorlib/corefx/System/Globalization/UmAlQuraCalendar.cs