summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 6098e96cad..c37a5bea7a 100644
--- a/parse.y
+++ b/parse.y
@@ -1445,7 +1445,7 @@ primary : literal
}
| primary_value '[' aref_args ']'
{
- if (nd_type($1) == NODE_SELF)
+ if ($1 && nd_type($1) == NODE_SELF)
$$ = NEW_FCALL(tAREF, $3);
else
$$ = NEW_CALL($1, tAREF, $3);