diff options
author | Steffen Pankratz <kratz00@gmx.de> | 2016-02-29 19:50:53 +0100 |
---|---|---|
committer | Steffen Pankratz <kratz00@gmx.de> | 2016-02-29 19:50:53 +0100 |
commit | 34c4636ee0a8ef9857b23e2257b670d14b2dfb8a (patch) | |
tree | 66290929ce2f418bc4140136751719fc01c565c2 | |
parent | 46c4f8be14aff1794f88f675ab372a8a07261c1a (diff) | |
download | external_heimdall-34c4636ee0a8ef9857b23e2257b670d14b2dfb8a.zip external_heimdall-34c4636ee0a8ef9857b23e2257b670d14b2dfb8a.tar.gz external_heimdall-34c4636ee0a8ef9857b23e2257b670d14b2dfb8a.tar.bz2 |
- fixed possible null pointer access
-rw-r--r-- | heimdall-frontend/source/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/heimdall-frontend/source/mainwindow.cpp b/heimdall-frontend/source/mainwindow.cpp index 8167e5a..f06fb4e 100644 --- a/heimdall-frontend/source/mainwindow.cpp +++ b/heimdall-frontend/source/mainwindow.cpp @@ -659,7 +659,7 @@ void MainWindow::SelectPartitionName(int index) partitionFileGroup->setTitle(title); - if (!fileInfo.GetFilename().isEmpty()) + if (pitEntry && !fileInfo.GetFilename().isEmpty()) { QString partitionFilename = pitEntry->GetFlashFilename(); int lastPeriod = partitionFilename.lastIndexOf(QChar('.')); |