D22404: do not dereference `current` outside guard condition

Harald Sitter noreply at phabricator.kde.org
Thu Jul 11 15:57:45 BST 2019


sitter created this revision.
sitter added a reviewer: Plasma.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
sitter requested review of this revision.

REVISION SUMMARY
  if current can be null, then clearly the one if must be nested inside
  the guard if lest it trips over the nullptr when calling `name()`.

TEST PLAN
  builds

REPOSITORY
  R871 DrKonqi

BRANCH
  save-deref

REVISION DETAIL
  https://phabricator.kde.org/D22404

AFFECTED FILES
  src/bugzillaintegration/reportassistantdialog.cpp

To: sitter, #plasma
Cc: plasma-devel, LeGast00n, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190711/e0bb58e6/attachment.html>


More information about the Plasma-devel mailing list