diff options
author | Tor Lillqvist <tlillqvist@novell.com> | 2011-05-20 16:41:33 +0300 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-05-20 12:31:04 -0400 |
commit | 7491e5cf8b42113ce08525b869d487cddb2cea35 (patch) | |
tree | eceae12fb0fedcfe23d5c5894fbab2db843927ad /desktop | |
parent | ed4e7e42f533b5ed6677c1eb74e58a2c9cb629be (diff) |
Sanity checks that fix crash (fdo#36495)
Signed-off-by: Michael Meeks <michael.meeks@novell.com>
Signed-off-by: Fridrich Strba <fridrich.strba@graduateinstitute.ch>
Signed-off-by: Kohei Yoshida <kyoshida@novell.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/deployment/gui/dp_gui_updatedialog.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx index d678c8626465..7c7e4dff8970 100644 --- a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx +++ b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx @@ -1263,11 +1263,15 @@ IMPL_LINK(UpdateDialog, selectionHandler, void *, EMPTYARG) } case DISABLED_UPDATE: { - bInserted = showDescription( m_disabledUpdates[pos].aUpdateInfo ); + if ( !m_disabledUpdates.empty() ) + bInserted = showDescription( m_disabledUpdates[pos].aUpdateInfo ); if ( p->m_bIgnored ) b.append( m_ignoredUpdate ); + if ( m_disabledUpdates.empty() ) + break; + UpdateDialog::DisabledUpdate & data = m_disabledUpdates[ pos ]; if (data.unsatisfiedDependencies.getLength() != 0) { |