Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions parser/src/main/java/dev/cel/parser/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -435,13 +435,10 @@ public CelExpr visitPrimaryExpr(PrimaryExprContext context) {
@Override
public CelExpr visitSelect(SelectContext context) {
checkNotNull(context);
if (context.member() == null) {
if (context.member() == null || context.id == null || context.op == null) {
return exprFactory.ensureErrorsExist(context);
}
CelExpr member = visit(context.member());
if (context.id == null) {
return exprFactory.newExprBuilder(context).build();
}
String id = normalizeEscapedIdent(context.id);

if (context.opt != null && context.opt.getText().equals("?")) {
Expand Down