[kmymoney] [Bug 464870] Crash when importin investments CSV
Thomas Baumgart
bugzilla_noreply at kde.org
Sat Feb 4 10:25:15 GMT 2023
https://bugs.kde.org/show_bug.cgi?id=464870
--- Comment #12 from Thomas Baumgart <tbaumgart at kde.org> ---
QStandardItem has no problem. Looking at the codeline in question
symbol = m_file->m_model->item(row, symbolCol)->text().trimmed();
the first part "m_file->m_model->item(row, symbolCol)" returns a nullpointer
which is then used to call the "->text()" member with (this=0x0). That is
clearly identified in the stacktrace as
#4 QStandardItem::text() const (this=0x0) at
/usr/include/qt5/QtGui/qstandarditemmodel.h:75
#5 0x00007f130fe90429 in CSVImporterCore::sortSecurities(QSet<QString>&,
QSet<QString>&, QMap<QString, QString>&) (this=0x7f12ec005b40, onlySymbols=...,
onlyNames=..., mapSymbolName=...) at
/usr/src/debug/kmymoney-5.1.3/kmymoney/plugins/csv/import/core/csvimportercore.cpp:1306
Calling text() via an invalid (null-) pointer is the problem and that is in our
code. No need to get answers from other places when we already have them.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the KMyMoney-devel
mailing list