Skip to content

Commit

Permalink
try to test for log's existence before hitting callback
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Oct 23, 2012
1 parent 740461a commit 4bd6b71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/pdal/GDALUtils.hpp
Expand Up @@ -69,10 +69,10 @@ class PDAL_DLL Debug
Debug* debug = static_cast<Debug*>(CPLGetErrorHandlerUserData());
if (!debug)
return;


if (!debug->m_log->get()) return;
debug->m_gdal_callback(code, num, msg);

if (!debug->m_log->get()) return;
#else
if (code == CE_Failure || code == CE_Fatal)
{
Expand Down

0 comments on commit 4bd6b71

Please sign in to comment.