From 02136c36be8ffa35be8eac91c5e29c8b2af6bf40 Mon Sep 17 00:00:00 2001 From: Rahul Dadhich Date: Wed, 14 Dec 2016 09:31:39 +0530 Subject: [PATCH] [TSAM-11526] Added NULL check Change-Id: I77b18fdfcabe221cedf5476b2517f0a2f762a870 Signed-off-by: Rahul Dadhich --- src/features/gl-albums.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/features/gl-albums.c b/src/features/gl-albums.c index 1cee1fe..7f67a7c 100644 --- a/src/features/gl-albums.c +++ b/src/features/gl-albums.c @@ -314,7 +314,8 @@ static void __gl_albums_create_thumb_cb(media_content_error_e error, GL_CHECK(user_data); gl_album_data_s *album_data = (gl_album_data_s *) user_data; GL_CHECK(album_data->ad); - gl_appdata *ad = (gl_appdata *) album_data->ad; + GL_CHECK(album_data->album); + gl_appdata *ad = (gl_appdata *)album_data->ad; gl_cluster *album = album_data->album; GL_FREE(album_data); album->album_data = NULL; -- 2.7.4