We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcb02b4 commit 68bfa76Copy full SHA for 68bfa76
parser/src/main/java/dev/cel/parser/Parser.java
@@ -435,13 +435,10 @@ public CelExpr visitPrimaryExpr(PrimaryExprContext context) {
435
@Override
436
public CelExpr visitSelect(SelectContext context) {
437
checkNotNull(context);
438
- if (context.member() == null) {
+ if (context.member() == null || context.id == null || context.op == null) {
439
return exprFactory.ensureErrorsExist(context);
440
}
441
CelExpr member = visit(context.member());
442
- if (context.id == null) {
443
- return exprFactory.newExprBuilder(context).build();
444
- }
445
String id = normalizeEscapedIdent(context.id);
446
447
if (context.opt != null && context.opt.getText().equals("?")) {
0 commit comments