dsanders11

#52764: fix: don't crash on invalid reason for promptTouchID

Merged
Created: Aug 11, 2026, 2:14:52 AM
Merged: Aug 12, 2026, 12:06:51 AM
4 comments
Target: main

Description of Change

Fixes an empty or non-UTF8 value for systemPreferences.promptTouchID(reason) causing a crash with NSInvalidArgumentException. This was flagged by the clang-analyzer-nullability.NullablePassedToNonnull check in clang-tidy.

Checklist

Release Notes

Notes: Fixed a crash in systemPreferences.promptTouchID(reason) when an invalid reason value is passed

Backports

42-x-y
Merged
PR Number
#52780
Merged At
Aug 12, 2026, 2:25:21 AM
Released In
Not yet
Release Date
Not yet
43-x-y
Merged
PR Number
#52782
Merged At
Aug 12, 2026, 2:25:26 AM
Released In
Not yet
Release Date
Not yet
44-x-y
Merged
PR Number
#52781
Merged At
Aug 12, 2026, 2:24:56 AM
Released In
Not yet
Release Date
Not yet

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron