From aaaec81be6c87e4797fda7a104e35f3e5ce425db Mon Sep 17 00:00:00 2001 From: Himanshu Date: Tue, 23 Jul 2013 15:30:43 +0530 Subject: [PATCH] Fixed issue 47036 Change-Id: Ie43172c979b877e4d727ab6e82e55ce9adcb818b Signed-off-by: Himanshu --- src/GlContentUpdateEventListener.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/GlContentUpdateEventListener.cpp b/src/GlContentUpdateEventListener.cpp index 818f175..3291261 100644 --- a/src/GlContentUpdateEventListener.cpp +++ b/src/GlContentUpdateEventListener.cpp @@ -164,13 +164,17 @@ ContentUpdateEventListener::OnContentFileCreated(Tizen::Content::ContentId conte if (contentType == CONTENT_TYPE_IMAGE || contentType == CONTENT_TYPE_VIDEO) { Tizen::Content::ContentInfo* cntInfo = __pContentManager->GetContentInfoN(contentId); - String path = cntInfo->GetContentPath(); - String dirName = GetDirecotyNameFromFullPath(path); - FileListPresentationModel* pFileListPM = FileListPresentationModel::GetInstance(); - pFileListPM->AddDirectoryIfNew(dirName); - AlbumListPresentationModel::GetInstance()->OnContentCreated(); - pFileListPM->OnContentCreated(); + if ( cntInfo != NULL) + { + String path = cntInfo->GetContentPath(); + String dirName = GetDirecotyNameFromFullPath(path); + + FileListPresentationModel* pFileListPM = FileListPresentationModel::GetInstance(); + pFileListPM->AddDirectoryIfNew(dirName); + AlbumListPresentationModel::GetInstance()->OnContentCreated(); + pFileListPM->OnContentCreated(); + } } AppLogDebug("EXIT"); -- 2.7.4