Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Avoid crashing when compiling calls to protopad-less multis
  • Loading branch information
sorear committed May 27, 2012
1 parent 529e0ac commit 98bb415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CodeGen.cs
Expand Up @@ -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 };
Expand Down

0 comments on commit 98bb415

Please sign in to comment.