Skip to content

Commit

Permalink
Add check for no rows
Browse files Browse the repository at this point in the history
  • Loading branch information
asylvest committed May 5, 2018
1 parent 6b1d67d commit d778aa2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/c++/nitf/source/ImageBlocker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,11 @@ void ImageBlocker::block(const void* input,
size_t numBytesPerPixel,
void* output) const
{
if (numRows == 0)
{
return;
}

// Find which segments we're in
size_t firstSegIdx;
size_t startBlockWithinFirstSeg;
Expand Down

0 comments on commit d778aa2

Please sign in to comment.