Qt: add assert to avoid null dereference (CID: 1427426).

Change-Id: Ib3a5830a4ae07ebb9bd2657599d668af03c896c8
Reviewed-on: https://code.wireshark.org/review/25275
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Dario Lombardo 2018-01-12 09:13:09 +01:00 committed by Michael Mann
parent 1b9de188ff
commit ef7d5daf42
1 changed files with 2 additions and 0 deletions

View File

@ -114,6 +114,8 @@ QString PrefsItem::getModuleTitle() const
if ((module_ == NULL) && (pref_ == NULL))
return name_;
Q_ASSERT(module_);
return QString(module_->title);
}