Commit 34c4636e authored by Steffen Pankratz's avatar Steffen Pankratz

- fixed possible null pointer access

parent 46c4f8be
...@@ -659,7 +659,7 @@ void MainWindow::SelectPartitionName(int index) ...@@ -659,7 +659,7 @@ void MainWindow::SelectPartitionName(int index)
partitionFileGroup->setTitle(title); partitionFileGroup->setTitle(title);
if (!fileInfo.GetFilename().isEmpty()) if (pitEntry && !fileInfo.GetFilename().isEmpty())
{ {
QString partitionFilename = pitEntry->GetFlashFilename(); QString partitionFilename = pitEntry->GetFlashFilename();
int lastPeriod = partitionFilename.lastIndexOf(QChar('.')); int lastPeriod = partitionFilename.lastIndexOf(QChar('.'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment