diff --git a/src/pc/djui/djui_panel_player.c b/src/pc/djui/djui_panel_player.c index 8ccc9dd0..889b8b4d 100644 --- a/src/pc/djui/djui_panel_player.c +++ b/src/pc/djui/djui_panel_player.c @@ -458,5 +458,7 @@ void djui_panel_player_create(struct DjuiBase* caller) { } struct DjuiPanel* p = djui_panel_add(caller, panel, NULL); - p->on_panel_destroy = djui_panel_player_destroy; + if (p != NULL) { + p->on_panel_destroy = djui_panel_player_destroy; + } }