You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" java.lang.NullPointerException
at java.xml/com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.importNode(CoreDocumentImpl.java:1536)
at java.xml/com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.importNode(CoreDocumentImpl.java:1501)
at org.joox.Impl.transform(Impl.java:1889)
at org.joox.Impl.transform(Impl.java:1900)
at org.joox.Impl.transform(Impl.java:1909)
at org.joox.Impl.transform(Impl.java:79)
at org.jooq.qom.QOM.main(QOM.java:49)
The text was updated successfully, but these errors were encountered:
When using
Match.transform()
, we can getNullPointerException
when the argument XSL does not produce any nodesConsider this program:
And the stylesheet might have no templates that match, e.g.
Then, this will be the result:
The text was updated successfully, but these errors were encountered: