Skip to content

Commit fea9eed

Browse files
committed
Fixed a bug that was causing the clang-tidy CI test to seg fault.
1 parent 078a3c9 commit fea9eed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app/clusters/service-area-server/service-area-cluster-objects.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ struct LocationStructureWrapper : public chip::app::Clusters::ServiceArea::Struc
182182
{
183183
if (!locationInfo.locationInfo.IsNull())
184184
{
185-
return locationInfo.locationInfo->locationName.data_equal(aLocationName);
185+
return locationInfo.locationInfo.Value().locationName.data_equal(aLocationName);
186186
}
187187

188188
return false; // name is Null or text sizes do not match
@@ -225,17 +225,17 @@ struct LocationStructureWrapper : public chip::app::Clusters::ServiceArea::Struc
225225
if (!locationInfo.locationInfo.IsNull())
226226
{
227227

228-
if (!IsNameEqual(aOther.locationInfo.locationInfo->locationName))
228+
if (!IsNameEqual(aOther.locationInfo.locationInfo.Value().locationName))
229229
{
230230
return false;
231231
}
232232

233-
if (locationInfo.locationInfo->floorNumber != aOther.locationInfo.locationInfo->floorNumber)
233+
if (locationInfo.locationInfo.Value().floorNumber != aOther.locationInfo.locationInfo.Value().floorNumber)
234234
{
235235
return false;
236236
}
237237

238-
if (locationInfo.locationInfo->areaType != aOther.locationInfo.locationInfo->areaType)
238+
if (locationInfo.locationInfo.Value().areaType != aOther.locationInfo.locationInfo.Value().areaType)
239239
{
240240
return false;
241241
}

0 commit comments

Comments
 (0)