nullptr exception for convergence test