Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Fix UmAlQuraCalendar static data initilaization - #3695

Merged
tarekgh merged 1 commit into
dotnet:masterfrom
tarekgh:FixUmAlQuraCalendarStaticDataInitialization
Mar 14, 2016
Merged

tarekgh merged 1 commit into
dotnet:masterfrom
tarekgh:FixUmAlQuraCalendarStaticDataInitialization

Conversation

@tarekgh

@tarekgh tarekgh commented Mar 14, 2016

Copy link
Copy Markdown
Member

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

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
@tarekgh

tarekgh commented Mar 14, 2016

Copy link
Copy Markdown
Member Author

CC @jkotas

@jkotas

jkotas commented Mar 14, 2016

Copy link
Copy Markdown
Member

LGTM

@tarekgh

tarekgh commented Mar 14, 2016

Copy link
Copy Markdown
Member Author

test Windows_NT x64 Debug Build and Test please

@tarekgh

tarekgh commented Mar 14, 2016

Copy link
Copy Markdown
Member Author

test Windows_NT x86 Release Legacy Backend Build and Test please

@tarekgh

tarekgh commented Mar 14, 2016

Copy link
Copy Markdown
Member Author

test Windows_NT x64 Debug Build and Test please

tarekgh added a commit to tarekgh/corert that referenced this pull request Mar 14, 2016
tarekgh added a commit that referenced this pull request Mar 14, 2016
…itialization

Fix UmAlQuraCalendar static data initilaization
@tarekgh
tarekgh merged commit 58753fa into dotnet:master Mar 14, 2016
@tarekgh
tarekgh deleted the FixUmAlQuraCalendarStaticDataInitialization branch March 25, 2019 15:27
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…arStaticDataInitialization

Fix UmAlQuraCalendar static data initilaization

Commit migrated from dotnet/coreclr@58753fa
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants