Project

Profile

Help

Bug #6615

closed

isEmpty crash for new empty XdmMap

Added by Christian Schmitz about 1 month ago. Updated 21 days ago.

Status:
Resolved
Priority:
Normal
Category:
SaxonC API
Start date:
2024-12-23
Due date:
% Done:

100%

Estimated time:
Applies to branch:
12, trunk
Fix Committed on Branch:
12, trunk
Fixed in Maintenance Release:
Found in version:
Fixed in version:
SaxonC Languages:
All
SaxonC Platforms:
All
SaxonC Architecture:

Description

I work with Saxon C++ classes in v12.5 and while writing some code to show properties of a map, I got this crash:

If you use XdmMap default constructor and check whether it is empty, you get a java exception and app is aborted.

e.g.

XdmMap *d = new XdmMap();
bool r = d->isEmpty();

provides a:

java.lang.IllegalArgumentException: Invalid handle
    at com.oracle.svm.core.handles.ObjectHandlesImpl.doGet(ObjectHandlesImpl.java:232)
    at com.oracle.svm.core.handles.ObjectHandlesImpl.get(ObjectHandlesImpl.java:220)
    at net.sf.saxon.option.cpp.XdmUtils.j_xdmMap_isEmpty(XdmUtils.java:962)

Please register to edit this issue

Also available in: Atom PDF