null pointer on line intersect