BasicDragger: Added null checks DRAG_END case by dr3amr2 · Pull Request #83 · NASAWorldWind/WorldWindJava

RaptorX uses one WWSelectListener to handle all of the dragging, and we're using different types of map object that triggers the dragging. The simpler map objects (2D shapes, UserFacingIcon, etc) where we can implement the Movable, Draggable interfaces works without any issues. While the more custom one like Range Rings and 3D Shapes, has a lot going on where we have to intercept the listener to re-render certain things. These classes does not have the Movable/Dragable interfaces, so the dragContext was never initialized for the BasicDragger. This causes some issues when the BasicDragger class gets called to end a drag event, but the dragContext was null.

Sorry the issues was pretty convoluted, hopefully my comment makes some sense. Let me know if you need additional information.