polyline null catch