From 095c9cfc35eef8ff1f2c16332b99f0c5fe2b6a83 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A1n=20Kupec?= Date: Thu, 20 May 2010 15:43:30 +0200 Subject: [PATCH] Additional null pointer check (bnc #607482) --- src/SolverRequester.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/SolverRequester.cc b/src/SolverRequester.cc index 222b075..a5d456b 100644 --- a/src/SolverRequester.cc +++ b/src/SolverRequester.cc @@ -507,8 +507,10 @@ void SolverRequester::updateTo( // there is higher version available than the selected candidate // this can happen because of repo priorities, locks, vendor lock, and - // because of CLI restrictions: repos/arch/version (bnc #522223) - if (!identical(selected, highest) && highest->edition() > installed->edition()) + // because of conditions given on comm. line: repos/arch/version (bnc #522223) + if (highest // should not happen, but just in case (bnc #607482 c#4) + && !identical(selected, highest) + && highest->edition() > installed->edition()) { // whether user requested specific repo/version/arch bool userconstraints = -- 2.7.4