Skip to content

Commit 7fe3aba

Browse files
authored
Fix DMF property strings being null (#2074)
1 parent 609322e commit 7fe3aba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OpenDreamClient/Interface/DMF/IDMFProperty.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ Value is formatted as a DM-escaped string with surrounding quotes.
4040
Does not change the value's text representation in any way; assumes it's already formatted correctly for the purpose. This is similar to as arg but does no escaping and no quotes.
4141
*/
4242

43-
public struct DMFPropertyString(string value) : IDMFProperty {
44-
public string Value = value;
43+
public struct DMFPropertyString(string? value) : IDMFProperty {
44+
public string Value = value ?? string.Empty;
4545

4646
public string AsArg() {
4747
return "\""+AsEscaped()+"\"";

0 commit comments

Comments
 (0)