using Tizen.Applications.CoreBackend;
using System.Collections.Generic;
using System.ComponentModel;
+using System;
namespace Tizen.NUI
{
/// <param name="widgetTypes">List of derived widget class type.</param>
public NUIWidgetApplication(Dictionary<System.Type, string> widgetTypes) : base(new NUIWidgetCoreBackend())
{
- NUIWidgetCoreBackend core = Backend as NUIWidgetCoreBackend;
- core?.RegisterWidgetInfo(widgetTypes);
+ if( widgetTypes == null )
+ {
+ throw new InvalidOperationException("Dictionary is null");
+ }
+ else
+ {
+ NUIWidgetCoreBackend core = Backend as NUIWidgetCoreBackend;
+ core?.RegisterWidgetInfo(widgetTypes);
+ }
}
/// <summary>