Skip to content

Commit 68bfa76

Browse files
CEL Dev Teamcopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 803313474
1 parent bcb02b4 commit 68bfa76

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

parser/src/main/java/dev/cel/parser/Parser.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -435,13 +435,10 @@ public CelExpr visitPrimaryExpr(PrimaryExprContext context) {
435435
@Override
436436
public CelExpr visitSelect(SelectContext context) {
437437
checkNotNull(context);
438-
if (context.member() == null) {
438+
if (context.member() == null || context.id == null || context.op == null) {
439439
return exprFactory.ensureErrorsExist(context);
440440
}
441441
CelExpr member = visit(context.member());
442-
if (context.id == null) {
443-
return exprFactory.newExprBuilder(context).build();
444-
}
445442
String id = normalizeEscapedIdent(context.id);
446443

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

0 commit comments

Comments
 (0)