client: Add NULL check for ops

This commit is contained in:
Tim Kourt 2017-04-25 10:18:46 -07:00 committed by Denis Kenzior
parent 4b4c7217fb
commit 8f632633c1
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ static void proxy_interface_create(const char *path,
proxy->path = l_strdup(path);
proxy->type = interface_type;
if (interface_type->ops->create) {
if (interface_type->ops && interface_type->ops->create) {
proxy->data = interface_type->ops->create();
interface_update_properties(proxy, &properties, NULL);