diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c index cce113f6a1..8a56db06f3 100644 --- a/gtk/gtkpopover.c +++ b/gtk/gtkpopover.c @@ -1370,6 +1370,9 @@ gtk_popover_check_invalidate_borders (GtkPopover *popover) GtkPositionType gap_side; gint tip_x, tip_y; + if (!priv->widget) + return; + gtk_popover_get_gap_coords (popover, NULL, NULL, &tip_x, &tip_y, NULL, NULL, &gap_side);