polyline fix catch null