From 148f5b8416ded6f3bd816293a9219ddec52dbbb7 Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Tue, 21 Jun 2022 11:12:03 +0200 Subject: [PATCH] ConfigObject: Mark object names as required This prevents a user from creating an object without a valid name such as `"", null`. --- lib/base/configobject.ti | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/configobject.ti b/lib/base/configobject.ti index 19b7cde83..432b3a79e 100644 --- a/lib/base/configobject.ti +++ b/lib/base/configobject.ti @@ -57,7 +57,7 @@ private: abstract class ConfigObject : ConfigObjectBase < ConfigType { [config, no_user_modify] String __name (Name); - [config, no_user_modify] String "name" (ShortName) { + [config, no_user_modify, required] String "name" (ShortName) { get {{{ String shortName = m_ShortName.load(); if (shortName.IsEmpty())