Skip to content

Commit f626376

Browse files
committed
Fix AbstractRefAccessor::isLoaded must check type size, pointer may be 0 for loaded data
1 parent 9da93a3 commit f626376

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DataFormats/common/include/CommonDataFormat/AbstractRefAccessor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace dataformats
2525
{
2626

2727
/*
28-
AbstractRefAccessor allows to register multiple containers of objects convertible to type T and
28+
AbstractRefAccessor allows to register multiple containers of objects convertible to type T and
2929
to access them by providing a global index indicating the registered source ID and the
3030
index within the original container
3131
*/
@@ -45,7 +45,7 @@ class AbstractRefAccessor
4545

4646
bool isLoaded(int src) const
4747
{
48-
return mContainerPtr[src] != nullptr;
48+
return mSizeOfs[src] != 0;
4949
}
5050

5151
/// get object as user provided type from explicitly provided source, index

0 commit comments

Comments
 (0)