Skip to content

Commit f2bd18e

Browse files
committed
Fixed crash on Houdni 20.5
1 parent 01bf5f8 commit f2bd18e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/utils/GAAttributesDump.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,12 @@ namespace Zibra::Utils
193193
data.resize(arraySize);
194194
for (int i = 0; i < arraySize; ++i)
195195
{
196-
data[i] = tuple->getString(attribute, mapOffset, i);
196+
const char* value = tuple->getString(attribute, mapOffset, i);
197+
if (value == nullptr)
198+
{
199+
return std::nullopt;
200+
}
201+
data[i] = value;
197202
}
198203
result["t"] = int(GA_STORE_STRING);
199204
result["v"] = data;

0 commit comments

Comments
 (0)