aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/Terminal.cs.rej
blob: 8f0aed564311fd1743f86a0b8159463b22427d19 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
diff a/ShiftOS_TheReturn/Applications/Terminal.cs b/ShiftOS_TheReturn/Applications/Terminal.cs	(rejected hunks)
@@ -228,6 +228,10 @@
             string args = text.Substring(argStart, text.Length - argStart);
             text = text.Remove(argStart, text.Length - argStart).Replace(" ", "");
 
+            if(string.IsNullOrWhiteSpace(args))
+            {
+                return new Dictionary<string, object>();
+            }
             return JsonConvert.DeserializeObject<Dictionary<string, object>>(args);
         }