diff --git a/keepassxc-browser/content/keepassxc-browser.js b/keepassxc-browser/content/keepassxc-browser.js index 65bf49a..34f077c 100755 --- a/keepassxc-browser/content/keepassxc-browser.js +++ b/keepassxc-browser/content/keepassxc-browser.js @@ -1540,6 +1540,10 @@ kpxc.rememberCredentialsFromContextMenu = async function() { const type = el.getAttribute('type'); const combination = await kpxcFields.getCombination(el, (type === 'password' ? type : 'username')); + if (!combination) { + return; + } + const usernameValue = combination.username ? combination.username.value : ''; const passwordValue = combination.password ? combination.password.value : '';