mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Check that escape item is non-null before checking id
This commit is contained in:
@@ -101,7 +101,7 @@ class TouchBar extends EventEmitter {
|
||||
|
||||
const interactionListener = (event, itemID, details) => {
|
||||
let item = this.items[itemID]
|
||||
if (item == null && this.escapeItem.id === itemID) {
|
||||
if (item == null && this.escapeItem != null && this.escapeItem.id === itemID) {
|
||||
item = this.escapeItem
|
||||
}
|
||||
if (item != null && item.onInteraction != null) {
|
||||
|
||||
Reference in New Issue
Block a user