Skip to content

Commit 72e6cb4

Browse files
committed
Make addArrayReaders a no-op for empty arrays
1 parent 1385891 commit 72e6cb4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pdal/PyPipeline.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ void addArrayReaders(PipelineExecutor* executor, std::vector<std::shared_ptr<Arr
6969
#ifndef _WIN32
7070
::dlopen("libpdal_base.so", RTLD_NOLOAD | RTLD_GLOBAL);
7171
#endif
72+
if (arrays.empty())
73+
return;
7274

7375
PipelineManager& manager = executor->getManager();
7476
std::vector<Stage *> roots = manager.roots();

0 commit comments

Comments
 (0)