[domain] Don't add NULL runtime to runtimes list (mono/mono#18260)
authorAleksey Kliger (λgeek) <alklig@microsoft.com>
Mon, 23 Dec 2019 15:44:32 +0000 (10:44 -0500)
committerGitHub <noreply@github.com>
Mon, 23 Dec 2019 15:44:32 +0000 (10:44 -0500)
commit4be967c3c3ac6ff9e60bba513eba4676444a5700
tree37eb67c6708da446e6c926e683e75141e1ab15c9
parent71a2470ee3756724a44fe984ff3e0fc82834f331
[domain] Don't add NULL runtime to runtimes list (mono/mono#18260)

Also when iterating over the runtimes, actually look at the current element,
not the first element.

Also mention the unsupported runtime version in the warning message when it is
passed to mono_init_internal.

Fixes https://github.com/mono/mono/issues/17916

Commit migrated from https://github.com/mono/mono/commit/ffdffa54f2494cfdf390fabfc76e353fbe59405a
src/mono/mono/metadata/domain.c