$ 0 0 You need to learn to debug, namely inspecting variables to see their values at time when exception occurs.