Permalink
Browse files

Avoid crashing when compiling calls to protopad-less multis

  • Loading branch information...
sorear committed May 27, 2012
1 parent 529e0ac commit 98bb4150cbc06c2e3e9f95c3f7d5a08ba08565ae
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/CodeGen.cs
View
@@ -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 };

0 comments on commit 98bb415

Please sign in to comment.