Skip to content

Commit 5fa06c6

Browse files
authored
Merge pull request #14 from joao-aguizo/issue#11
Pops queue only if this is not empty.
2 parents 4844f2e + 72edc9f commit 5fa06c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: include/patchworkpp/patchworkpp.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ void PatchWorkpp<PointT>::pc2czm(const pcl::PointCloud<PointT> &src, std::vector
10211021

10221022
for (int i=0; i<src.size(); i++) {
10231023

1024-
if (i == noise_idxs_.front()) {
1024+
if ((!noise_idxs_.empty()) &&(i == noise_idxs_.front())) {
10251025
noise_idxs_.pop();
10261026
continue;
10271027
}

0 commit comments

Comments
 (0)