summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/compiler-core/slang-json-value.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/compiler-core/slang-json-value.cpp b/source/compiler-core/slang-json-value.cpp
index 7a2375f2e..2e1eb6812 100644
--- a/source/compiler-core/slang-json-value.cpp
+++ b/source/compiler-core/slang-json-value.cpp
@@ -572,6 +572,10 @@ UnownedStringSlice JSONContainer::getString(const JSONValue& in)
{
return StringRepresentation::asSlice(in.stringRep);
}
+ case JSONValue::Type::Null:
+ {
+ return UnownedStringSlice();
+ }
default: break;
}
@@ -609,6 +613,10 @@ UnownedStringSlice JSONContainer::getTransientString(const JSONValue& in)
return unquoted;
}
}
+ case JSONValue::Type::Null:
+ {
+ return UnownedStringSlice();
+ }
}
SLANG_ASSERT(!"Not a string type");