Fixed null pointer exception: initialized variable in graphics.