All that stuff you are doing with and without doing other stuff does not matter at all for your problem. Your problem boils down to you are using a variable you did not initialize yet. The error...