Hi..
What kind of mistake that usually cause the Empty pointer error...
beside forget to put the "wait(1)" line...