[domain] Don't add NULL runtime to runtimes list (#18266)
commitcafdade424f74e6e2ea9289dccc5978e9b8d599f
authormonojenkins <jo.shields+jenkins@xamarin.com>
Mon, 23 Dec 2019 13:42:29 +0000 (23 14:42 +0100)
committerAleksey Kliger (λgeek) <alklig@microsoft.com>
Mon, 23 Dec 2019 13:42:29 +0000 (23 08:42 -0500)
treed1f61925546f0229012feedd3fa46350ae7fde3f
parent43cfe8ecfee81be42d18feadb4cb2ad82392809a
[domain] Don't add NULL runtime to runtimes list (#18266)

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
mono/metadata/domain.c