[#2494] Possible null pointer passed to ConnectionProvider.release()