How to reproduce:
- Start workbench
- Select an measurment option and start drawing with an empty storage
crash.
Reason:
- mitk::PlanarFigureInteractor::MoveCurrentPoint() is retrieves a planargeometry which is a nullptr
- then this->TransformPositionEventToPoint2D(positionEvent, planarFigureGeometry, point2D) is invoked with the nullptr and crashes.
What todo:
- Introduce a nullptr check in PlanarFigureInteractor to avoid nullptr exception (see above) but throw meaning full exceptions it it is a violated precondition.