Kenric Nugteren 2 роки тому
батько
коміт
f1792f9ebc

+ 0 - 2
InABox.Client.Remote.Shared/RemoteClient.cs

@@ -434,8 +434,6 @@ namespace InABox.Clients
             {
                 return false;
             }
-
-            return false;
         }
 
         #endregion

+ 1 - 1
InABox.Core/CoreUtils.cs

@@ -517,7 +517,7 @@ namespace InABox.Core
                 }
 
             if (value is IEnumerable<object> objList && type == typeof(Guid))
-                return objList.Select(x => (Guid)ChangeType(x, typeof(Guid))).ToArray();
+                return objList.Select(x => ChangeType<Guid>(x)).ToArray();
 
             if (value is byte[] && type == typeof(Guid))
                 return new Guid(value as byte[]);

+ 4 - 4
InABox.Core/DigitalForms/Layouts/Fields/DFLayoutPasswordField/DFLayoutPasswordFieldProperties.cs

@@ -2,14 +2,14 @@
 {
     public class DFLayoutPasswordFieldProperties : DFLayoutFieldProperties<string>
     {
-        public override string FormatValue(object value)
+        public override string FormatValue(object? value)
         {
-            return value.ToString();
+            return value?.ToString() ?? "";
         }
 
-        public override object ParseValue(object value)
+        public override object? ParseValue(object? value)
         {
-            return value.ToString();
+            return value?.ToString();
         }
     }
 }