https://issues.qgis.org/https://issues.qgis.org/favicon.ico2013-12-05T07:05:49ZQGIS Issue TrackingQGIS Application - Bug report #9166: invalid field name in expressions make QGIS crash in debug modehttps://issues.qgis.org/issues/9166?journal_id=467962013-12-05T07:05:49ZJürgen Fischerjef@norbit.de
<ul><li><strong>Priority</strong> changed from <i>Severe/Regression</i> to <i>Normal</i></li></ul><p>Not reproducable here. Tried joining a shape with a csv and renamed the csv field on windows 64bit. no crash.</p> QGIS Application - Bug report #9166: invalid field name in expressions make QGIS crash in debug modehttps://issues.qgis.org/issues/9166?journal_id=467972013-12-05T07:06:11ZJürgen Fischerjef@norbit.de
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul> QGIS Application - Bug report #9166: invalid field name in expressions make QGIS crash in debug modehttps://issues.qgis.org/issues/9166?journal_id=467982013-12-05T07:08:19ZMatthias Kuhn
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul><p>Fixed in changeset <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/f428c869a980cc707da1fe96e2ba8ba763af78c6" title="Safety check when joining before accessing fields Fix #9166">f428c869a980cc707da1fe96e2ba8ba763af78c6</a>.</p> QGIS Application - Bug report #9166: invalid field name in expressions make QGIS crash in debug modehttps://issues.qgis.org/issues/9166?journal_id=467992013-12-05T07:10:03ZMatthias Kuhn
<ul></ul><p>I wonder if we should change all the QgsFields methods from [] to .value() which does check if the index exists at the cost of a probably neglectable overhead.</p>