Skip to content

Commit d772865

Browse files
authored
Merge pull request #1222 from Unity-Technologies/unity-master-debugger-fix-create-boxed-value
Fixing issue with debugger CREATE_BOXED_VALUE command. case 1169306.
2 parents 94f6f13 + 196336a commit d772865

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mono/mini/debugger-agent.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9539,6 +9539,9 @@ domain_commands (int command, guint8 *p, guint8 *end, Buffer *buf)
95399539
// FIXME:
95409540
g_assert (domain == domain2);
95419541

9542+
if (!klass->valuetype)
9543+
return ERR_INVALID_ARGUMENT;
9544+
95429545
o = mono_object_new_checked (domain, klass, &error);
95439546
mono_error_assert_ok (&error);
95449547

0 commit comments

Comments
 (0)