aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2016-04-06 18:27:05 +0200
committerAnders Broman <a.broman58@gmail.com>2016-04-08 06:12:24 +0000
commit6d197f742fdbb9d804259948cd9e021fe46e0f42 (patch)
tree801ec02045a13dff6bd5c80788e37b628b3cef9d
parent5601d6057b9717cd415bfda75b58cc0aa1248cbc (diff)
packet_list: fix Called C++ object pointer is null found by Clang Analyzer
Change-Id: Ie1a16973e94f09eeacea770936f9a9b4ab82b01d Reviewed-on: https://code.wireshark.org/review/14838 Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com> Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--ui/qt/packet_list.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/packet_list.cpp b/ui/qt/packet_list.cpp
index 8007cecda0..c775317518 100644
--- a/ui/qt/packet_list.cpp
+++ b/ui/qt/packet_list.cpp
@@ -503,7 +503,7 @@ void PacketList::selectionChanged (const QItemSelection & selected, const QItemS
if (fi && proto_tree_) {
proto_tree_->selectField(fi);
}
- } else if (!cap_file_->search_in_progress) {
+ } else if (!cap_file_->search_in_progress && proto_tree_) {
proto_tree_->restoreSelectedField();
}
}