fix bug

if the point is null, ignore it