diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-08-10 17:28:24 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-08-10 09:55:11 -0700 |
commit | f18ea2e3b62f43358ea3f7f5b5ba74a351f7b088 (patch) | |
tree | 1989e3874a06ad9c480ca19d7708e8aba44704ac /Readme.ubuntu | |
parent | 309a8c5b14a717cdc35ecb03aae2a57e59c0f922 (diff) | |
download | subsurface-f18ea2e3b62f43358ea3f7f5b5ba74a351f7b088.tar.gz |
Location model: treat invalid indexes gracefully
There have been crash reports in DiveSiteSortedModel::allSiteNames().
The only conceivable reason that this crashes is that the core knows
about more sites than the model and therefore on mapToSource() we
get an invalid index, which is translated to -1. Accessing the name
of that dive site will crash.
Handle such invalid indexes gracefully.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'Readme.ubuntu')
0 files changed, 0 insertions, 0 deletions