Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions modules/c++/nitf/source/ImageReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ nitf::BlockingInfo ImageReader::getBlockingInfo() const
{
nitf_BlockingInfo* blockingInfo =
nitf_ImageReader_getBlockingInfo(getNativeOrThrow(), &error);
if (!blockingInfo)
throw nitf::NITFException(&error);
// This creates a new object, not a reference to a field,
// So need to tell the wrapper it needs to destruct itself
nitf::BlockingInfo cppBlockingInfo(blockingInfo);
Expand Down