Fix Called C++ object pointer is null found by Clang

Change-Id: I2263b4ac16945be6d87eaa8c963f7b03e437d724
Reviewed-on: https://code.wireshark.org/review/319
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
Alexis La Goutte 2014-02-23 20:05:04 +01:00
parent dd4e5fcbdd
commit 7bd14675b2
1 changed files with 1 additions and 1 deletions

View File

@ -920,7 +920,7 @@ void TCPStreamDialog::mouseMoved(QMouseEvent *event)
tracer_->setGraphKey(ui->streamPlot->xAxis->pixelToCoord(event->pos().x()));
ui->streamPlot->replot();
} else {
if (rubber_band_ && rubber_band_->isVisible()) {
if (rubber_band_ && rubber_band_->isVisible() && event) {
rubber_band_->setGeometry(QRect(rb_origin_, event->pos()).normalized());
QRectF zoom_ranges = getZoomRanges(QRect(rb_origin_, event->pos()));
if (zoom_ranges.width() > 0.0 && zoom_ranges.height() > 0.0) {