error point cannot be null