diff -r e2729a990e8b -r c4749a27966d SharpLibEar/Event.cs
--- a/SharpLibEar/Event.cs Tue Aug 30 21:14:18 2016 +0200
+++ b/SharpLibEar/Event.cs Wed Aug 31 16:06:47 2016 +0200
@@ -23,6 +23,10 @@
]
public bool Enabled { get; set; } = true;
+
+ ///
+ /// TODO: Should the name property be moved to our EAR Object?
+ ///
[DataMember]
[AttributeObjectProperty
(
@@ -33,6 +37,7 @@
]
public string Name { get; set; } = "";
+
[DataMember]
public List Actions = new List();
@@ -41,6 +46,12 @@
{
base.DoConstruct();
+ //Make sure our name is not null
+ if (Name == null)
+ {
+ Name = "";
+ }
+
// TODO: Construct properties too
foreach (Action a in Actions)
{