Skip to content

Commit 72edc9f

Browse files
author
João Aguizo
committed
Pops queue only if this is not empty.
1 parent 4844f2e commit 72edc9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/patchworkpp/patchworkpp.hpp

Lines changed: 1 addition & 1 deletion
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)