We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d7338a commit dc99740Copy full SHA for dc99740
app/src/main/cpp/androidfrontend/androidfrontend.cpp
@@ -227,9 +227,13 @@ class AndroidInputContext : public InputContextV2 {
227
if (!actionable) return;
228
if (idx >= list->size()) {
229
const auto &bulk = list->toBulk();
230
- if (bulk && idx < bulk->totalSize()) {
231
- const auto &c = bulk->candidateFromAll(idx);
232
- actionable->triggerAction(c, actionIdx);
+ if (bulk) {
+ try {
+ const auto &c = bulk->candidateFromAll(idx);
233
+ actionable->triggerAction(c, actionIdx);
234
+ } catch (const std::exception &e) {
235
+ FCITX_WARN() << "triggerCandidateAction(" << idx << ") failed:" << e.what();
236
+ }
237
}
238
} else {
239
const auto &c = list->candidate(idx);
0 commit comments