Aklakan commented on PR #2884:
URL: https://github.com/apache/jena/pull/2884#issuecomment-2526098701

   My change is in here:
   
   ```sparql
       public Expr transform(ExprFunctionOp funcOp, ExprList args, Op opArg)
       {
           Element el2 = ElementTransformer.transform(funcOp.getElement(), 
transform, this);
       }
   ```
   
   So the issue is related to (NOT) EXISTS when there is a subquery.
   Also note that, the transform is an ElementTransform - so SELECT * { ?s a ?c 
} is treated different than ?s a ?c - although the Op would be the same.
   
   I reduced the query to this:
   
   ```sparql
   SELECT ?x {
     SELECT ?x { # <-- NPE disappears when removing this sub select.
       ?x a ?y
       FILTER EXISTS { SELECT * { ?y a ?z } }
     }
   }
   ```
   
   I silghtly updated the test cases.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscr...@jena.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscr...@jena.apache.org
For additional commands, e-mail: pr-h...@jena.apache.org

Reply via email to