Merge "(patch-coverage.pl) Ignore header files that yield no coverage" into devel...
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 13 Feb 2020 16:06:04 +0000 (16:06 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Thu, 13 Feb 2020 16:06:04 +0000 (16:06 +0000)
dali-toolkit/internal/image-loader/image-load-thread.cpp

index 213173a..179734a 100644 (file)
@@ -22,6 +22,7 @@
 #include <dali/devel-api/adaptor-framework/image-loading.h>
 #include <dali/devel-api/adaptor-framework/thread-settings.h>
 #include <dali/integration-api/adaptor-framework/adaptor.h>
+#include <dali/integration-api/debug.h>
 
 namespace Dali
 {
@@ -76,6 +77,11 @@ void LoadingTask::Load()
   {
     pixelBuffer = Dali::DownloadImageSynchronously ( url.GetUrl(), dimensions, fittingMode, samplingMode, orientationCorrection );
   }
+
+  if( !pixelBuffer )
+  {
+    DALI_LOG_ERROR( "LoadingTask::Load: Loading is failed: %s\n", url.GetUrl().c_str() );
+  }
 }
 
 void LoadingTask::ApplyMask()