Skip to content

Regression

cz.cvut.kbss.jopa.model.QueryResultSpliteratorTest.tryAdvanceInvokesClosingProcedureWhenConsumerThrowsException

Failing for the past 1 build (Since Failed#561 )
Took 4 ms.

Error Message

Unexpected exception type thrown, expected: <cz.cvut.kbss.jopa.exceptions.OWLPersistenceException> but was: <java.lang.NullPointerException>

Stacktrace

org.opentest4j.AssertionFailedError: Unexpected exception type thrown, expected: <cz.cvut.kbss.jopa.exceptions.OWLPersistenceException> but was: <java.lang.NullPointerException>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:67)
	at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:35)
	at org.junit.jupiter.api.Assertions.assertThrows(Assertions.java:3128)
	at cz.cvut.kbss.jopa.model.QueryResultSpliteratorTest.tryAdvanceInvokesClosingProcedureWhenConsumerThrowsException(QueryResultSpliteratorTest.java:129)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: java.lang.NullPointerException: Cannot invoke "cz.cvut.kbss.jopa.utils.Procedure.execute()" because "this.onClose" is null
	at cz.cvut.kbss.jopa.model.QueryResultSpliterator.tryAdvance(QueryResultSpliterator.java:66)
	at cz.cvut.kbss.jopa.model.QueryResultSpliteratorTest.lambda$tryAdvanceInvokesClosingProcedureWhenConsumerThrowsException$5(QueryResultSpliteratorTest.java:129)
	at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:53)
	... 6 more