diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ui.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -302,6 +302,11 @@ PianoStation_t *BarUiSelectStation (PianoHandle_t *ph, const char *prompt, size_t stationCount, i; int input; + if (ph->stations == NULL) { + BarUiMsg (MSG_ERR, "No station available.\n"); + return NULL; + } + /* sort and print stations */ sortedStations = BarSortedStations (ph->stations, &stationCount, order); for (i = 0; i < stationCount; i++) { |