fixed null pointer exception in debug method
Merge branch 'master' of github.com:CMPUT301F13T06/ClassProject