Skip to content
Snippets Groups Projects
Commit ae006ee5 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

BUG: the SIFT test should check that the data it tries to access really exists

parent fe03dbd8
Branches
Tags
No related merge requests found
......@@ -65,6 +65,10 @@ int otbImageToSIFTKeyPointSetFilterOutputAscii(int argc, char * argv[])
filter->Update();
PointsIteratorType pIt = filter->GetOutput()->GetPoints()->Begin();
if (filter->GetOutput()->GetPointData() == NULL)
{
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();
std::ofstream outfile(outfname);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment