Skip to content

Commit

Permalink
fix segfault when YCPNull given
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Mar 4, 2013
1 parent 6a631c3 commit e4ae451
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/binary/Y2YCPTypeConv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ ycp_term_to_rb_term( YCPTerm ycpterm )
extern "C" VALUE
ycpvalue_2_rbvalue( YCPValue ycpval )
{

// TODO
// YT_BYTEBLOCK YT_CODE YT_RETURN YT_BREAK YT_ENTRY YT_ERROR YT_REFERENCE YT_EXTERNA
if (ycpval->isVoid())
if (ycpval.isNull() || ycpval->isVoid())
{
return Qnil;
}
Expand Down

0 comments on commit e4ae451

Please sign in to comment.