Project

Profile

Help

Bug #6265

closed

NPE in net.sf.saxon.functions.Contains

Added by Radu Coravu about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Internals
Sprint/Milestone:
-
Start date:
2023-11-29
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
12, trunk
Fix Committed on Branch:
12, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java

Description

The problem was initially reported here: https://listserv.brown.edu/cgi-bin/wa?A2=ind2311&L=TEI-L&P=24616

It seems that one of our users who validates TEI XML documents using Schematron stumbled upon this NullPointerException:

java.lang.NullPointerException: Cannot invoke "String.contains(java.lang.CharSequence)" because the return value of "net.sf.saxon.expr.elab.StringEvaluator.eval(net.sf.saxon.expr.XPathContext)" is null
	at net.sf.saxon.functions.Contains$ContainsFnElaborator.lambda$elaborateForBoolean$0(Contains.java:76)
	at net.sf.saxon.expr.instruct.TraceExpression$TraceExpressionElaborator.lambda$elaborateForBoolean$5(TraceExpression.java:469)
	at net.sf.saxon.expr.OrExpression$OrElaborator.lambda$elaborateForBoolean$0(OrExpression.java:173)
	at net.sf.saxon.expr.instruct.Choose$ChooseExprElaborator.lambda$elaborateForPush$10(Choose.java:1168)
	at 

Please register to edit this issue

Also available in: Atom PDF