Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -733,7 +733,7 @@ public RubyNode visitCaseNode(org.jruby.ast.CaseNode node) {

RubyNode thenNode;

if (when.getBodyNode() == null) {
if (when.getBodyNode() == null || when.getBodyNode().isNil()) {
thenNode = new ObjectLiteralNode(context, sourceSection, context.getCoreLibrary().getNilObject());
} else {
thenNode = when.getBodyNode().accept(this);

0 comments on commit c4185ef

Please sign in to comment.