using Tizen.Applications.CoreBackend;
using System.Collections.Generic;
using System.ComponentModel;
+using System;
namespace Tizen.NUI
{
/// The constructor for multi widget class and instance.
/// </summary>
/// <param name="widgetTypes">List of derived widget class type.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
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>