From fb1380b1835564816ce33c5735480ec413b83ac2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C3=A9cureuil?= Date: Tue, 17 Nov 2009 11:09:28 +0000 Subject: [PATCH] Fix crash svn path=/trunk/KDE/kdebase/apps/; revision=1050466 --- src/panels/information/kmetadatawidget.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/panels/information/kmetadatawidget.cpp b/src/panels/information/kmetadatawidget.cpp index 5239d92fd7..c4272c786e 100644 --- a/src/panels/information/kmetadatawidget.cpp +++ b/src/panels/information/kmetadatawidget.cpp @@ -337,9 +337,12 @@ void KMetaDataWidget::Private::slotLoadingFinished() { #ifdef HAVE_NEPOMUK Q_ASSERT(m_loadMetaDataThread != 0); - m_ratingWidget->setRating(m_loadMetaDataThread->rating()); - m_commentWidget->setText(m_loadMetaDataThread->comment()); - m_taggingWidget->setTags(m_loadMetaDataThread->tags()); + if (m_ratingWidget) + m_ratingWidget->setRating(m_loadMetaDataThread->rating()); + if (m_commentWidget) + m_commentWidget->setText(m_loadMetaDataThread->comment()); + if (m_taggingWidget) + m_taggingWidget->setTags(m_loadMetaDataThread->tags()); // Show the remaining meta information as text. The number // of required rows may very. Existing rows are reused to