It does sound exactly like what I had.
I also specified how to solve this quickly and locally by adding null reference checks directly in the library in the getNearestPoint functions or in your case FindNearestPointOnPolyline.
The ideal solution would be as objo said :
I don't have time to look into this myself, but if I'm not the only one that had this bug it would be a good idea to create an issue about it.
I also specified how to solve this quickly and locally by adding null reference checks directly in the library in the getNearestPoint functions or in your case FindNearestPointOnPolyline.
The ideal solution would be as objo said :
Maybe it would be better to handle this in the PlotModel.HandleMouseDown method - if the plot model is not updated it should not try to perform the hit testing.You can see for yourself which one you want to implement.
I don't have time to look into this myself, but if I'm not the only one that had this bug it would be a good idea to create an issue about it.