1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-10 05:45:32 +00:00

account-row: Guard calls_account_row_new() against invalid provider

This commit is contained in:
Evangelos Ribeiro Tzaras 2023-04-07 12:21:35 +02:00
parent f2ca24a6f1
commit 22635d418e

View file

@ -217,6 +217,7 @@ calls_account_row_new (CallsAccountProvider *provider,
CallsAccount *account) CallsAccount *account)
{ {
g_return_val_if_fail (CALLS_IS_ACCOUNT (account), NULL); g_return_val_if_fail (CALLS_IS_ACCOUNT (account), NULL);
g_return_val_if_fail (CALLS_IS_ACCOUNT_PROVIDER (provider), NULL);
return g_object_new (CALLS_TYPE_ACCOUNT_ROW, return g_object_new (CALLS_TYPE_ACCOUNT_ROW,
"provider", provider, "provider", provider,