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:
parent
1b9de188ff
commit
ef7d5daf42
|
@ -114,6 +114,8 @@ QString PrefsItem::getModuleTitle() const
|
|||
if ((module_ == NULL) && (pref_ == NULL))
|
||||
return name_;
|
||||
|
||||
Q_ASSERT(module_);
|
||||
|
||||
return QString(module_->title);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue