Commit 295a8743 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

TEST: add explicit message when exiting without any point

parent ab886ca6
......@@ -67,6 +67,7 @@ int otbImageToSIFTKeyPointSetFilterOutputAscii(int argc, char * argv[])
PointsIteratorType pIt = filter->GetOutput()->GetPoints()->Begin();
if (filter->GetOutput()->GetPointData() == NULL)
{
std::cerr << "No sift point found!" << std::endl;
return EXIT_FAILURE;//Avoid the subsequent segfault, but need to check if that what the test want to do
}
PointDataIteratorType pDataIt = filter->GetOutput()->GetPointData()->Begin();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment