aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2017-05-19 14:44:14 +0200
committerStig Bjørlykke <stig@bjorlykke.org>2017-05-19 21:31:23 +0000
commit4424a8e86290265f6704ce0a67ebbd2bbd13e8f5 (patch)
tree37f0b159d0ead5394c5b0f9423ad4a8d6b137003 /ui
parentb2923e93133e21f18799124eff01156088980456 (diff)
Qt: Check for no tvb in Show Packet Bytes
Bug: 13723 Change-Id: I145fe93fc05a9cfdc6c0fc949274a1e88dcf2f1e Reviewed-on: https://code.wireshark.org/review/21709 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/show_packet_bytes_dialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/qt/show_packet_bytes_dialog.cpp b/ui/qt/show_packet_bytes_dialog.cpp
index 5bba737e7b..2a83354943 100644
--- a/ui/qt/show_packet_bytes_dialog.cpp
+++ b/ui/qt/show_packet_bytes_dialog.cpp
@@ -496,6 +496,9 @@ void ShowPacketBytesDialog::updateFieldBytes(bool initialization)
int length = end_ - start_;
const guint8 *bytes;
+ if (!finfo_->ds_tvb)
+ return;
+
switch (decode_as_) {
case DecodeAsNone: