Jitsi widget: Fix in [WidgetManager widgetsOfTypes:inRoom:]

This commit is contained in:
manuroe 2017-08-16 17:05:14 +02:00
parent 1e62fcadaa
commit 43f9a278a2

View file

@ -97,7 +97,7 @@ NSString *const kMXKWidgetManagerDidUpdateWidgetNotification = @"kMXKWidgetManag
NSString *widgetType;
MXJSONModelSetString(widgetType, widgetEvent.content[@"type"]);
if (NSNotFound == [widgetTypes indexOfObject:widgetType])
if (widgetType && NSNotFound == [widgetTypes indexOfObject:widgetType])
{
continue;
}