We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd67c56 commit d7f2e44Copy full SHA for d7f2e44
src/cluster_copier.cc
@@ -667,8 +667,8 @@ namespace grpc_labview {
667
if (metadata->isRepeated)
668
{
669
auto array = *(LV1DArrayHandle*)start;
670
- auto arraySize = (*array)->cnt;
671
- if (array && *array && (arraySize != 0))
+ auto arraySize = (array && *array) ? (*array)->cnt : 0;
+ if (arraySize != 0)
672
673
auto repeatedStringValue = std::make_shared<LVRepeatedMessageValue<std::string>>(metadata->protobufIndex);
674
message._values.emplace(metadata->protobufIndex, repeatedStringValue);
0 commit comments