Closed
Description
import jakarta.persistence.EntityManagerFactory;
import org.hibernate.reactive.mutiny.Mutiny;
@Inject
EntityManagerFactory emf;
public Uni<Integer> myFunc() {
Mutiny.SessionFactory factory = emf.unwrap(Mutiny.SessionFactory.class);
return factory.withSession(session -> { session.createNativeQuery(storedProcedureCall).getSingleResultOrNull()
}
The call errors out when the stored procedure does not return any result with
java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because the return value of "io.vertx.sqlclient.RowSet.columnsNames()" is null