Project

Profile

Help

Bug #5632

open

NPE in SchemaReader

Added by Radu Coravu 17 days ago. Updated 16 days ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2022-08-03
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

One of our auto tests throws a NPE in the Saxon EE class SchemaReader, probably because a certain import is not properly resolved through the XML catalog, maybe this situation could be handled in the Saxon code by throwing some other exception.

java.lang.NullPointerException
	at com.saxonica.ee.schema.sdoc.SchemaReader.read(SchemaReader.java:142)
	at com.saxonica.ee.schema.sdoc.XSDImport.prepareAttributes(XSDImport.java:212)
Actions #1

Updated by Radu Coravu 17 days ago

More details about the NPE: java.lang.NullPointerException: Cannot invoke "javax.xml.transform.Source.getSystemId()" because "source" is null

Actions #2

Updated by Radu Coravu 16 days ago

The NPE is caused by my mistake in implementing the API, on the "net.sf.saxon.lib.SchemaURIResolver.resolve(String, String, String[])" implementation on my side there was a case when I returned a String[] containing a null inside it.

Please register to edit this issue

Also available in: Atom PDF