Ephemeris.getFrame() throws NPE
Ephememris.getFrame() (as implemented in AbstractPropagator) will always throw a NPE because Ephemeris does not use AbstractPropagator.initialState. Are there other propagators that don't use the initialState variable? They may have this same bug.
I've attached a test case and patch that fixes it for Ephemeris. The easy fix would be to change AbstractPropagator.getFrame() to
public Frame getFrame() {
return getInitialState().getFrame();
}
but that won't work because (counterintuitively) getInitialState() is declared to throw a PropagationException.
Thanks in advance,
Evan
(from redmine: issue id 129, created on 2013-03-22, closed on 2013-03-22)
- Uploads: