Fixed exception when the Text is null