fixed character parser null pointer exception