ref: refs/heads/SuSE-Code-11-Branch
commit 83888fe0f2584581b12369813b8923fc1f99ddec
Author: Michael Andres
Date: Tue Sep 29 18:32:53 2009 +0200
Fix crash accessing data of installed packages, that were deleted behind our back (bnc #530595)
---
zypp/Package.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/zypp/Package.cc b/zypp/Package.cc
index 3263a94..0db54af 100644
--- a/zypp/Package.cc
+++ b/zypp/Package.cc
@@ -85,7 +85,7 @@ namespace zypp
{
target::rpm::RpmHeader::constPtr header;
target->rpmDb().getData(name(), header);
- return header->tag_changelog();
+ return header ? header->tag_changelog() : Changelog(); // might be deleted behind our back (bnc u530595)
}
WAR << "changelog is not available for uninstalled packages" << std::endl;
return Changelog();
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org