From 3fdafc6d25e85050976e0cc645db579086db3f45 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Tue, 7 Jan 2020 18:19:02 -0500 Subject: [PATCH] Prevent crash if Auto-Type performed on new entry * Check that entry's group is not nullptr * Fixes #3967 --- src/autotype/AutoType.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/autotype/AutoType.cpp b/src/autotype/AutoType.cpp index 299299b8c..80a2268ec 100644 --- a/src/autotype/AutoType.cpp +++ b/src/autotype/AutoType.cpp @@ -588,12 +588,12 @@ QList AutoType::createActionFromTemplate(const QString& tmpl, c QList AutoType::autoTypeSequences(const Entry* entry, const QString& windowTitle) { QList sequenceList; + const Group* group = entry->group(); - if (!entry->autoTypeEnabled()) { + if (!group || !entry->autoTypeEnabled()) { return sequenceList; } - const Group* group = entry->group(); do { if (group->autoTypeEnabled() == Group::Disable) { return sequenceList;