public void show(AltosState state, AltosListenerState listener_state) {
status_update.saved_state = state;
- if (state == null) {
- System.out.printf ("no state provided\n");
- state = new AltosState(new AltosRecord());
- }
+ if (state == null)
+ state = new AltosState();
pad.show(state, listener_state);
flightStatus.show(state, listener_state);
flightInfo.show(state, listener_state);
- if (state.data.companion != null) {
+ if (state.companion != null) {
if (!has_companion) {
pane.add("Companion", companion);
has_companion= true;