Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Avoid crashing when compiling calls to protopad-less multis

  • Loading branch information...
commit 98bb4150cbc06c2e3e9f95c3f7d5a08ba08565ae 1 parent 529e0ac
@sorear authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/CodeGen.cs
View
2  lib/CodeGen.cs
@@ -4060,7 +4060,7 @@ public class DowncallReceiver : CallReceiver {
var ldisp = li as LIDispatch;
if (ldisp != null)
r = new object[] { "dispatch",null,null,null, Handle.Wrap(csr),
- Handle.Wrap(ldisp.Get(csr.protopad)) };
+ csr.protopad != null ? Handle.Wrap(ldisp.Get(csr.protopad)) : null};
var llab = li as LILabel;
if (llab != null)
r = new object[] { "label",null,null,null };
Please sign in to comment.
Something went wrong with that request. Please try again.