Electron.AutoUpdater.CheckForUpdatesAsync() null reference exception #967

Closed
opened 2026-01-29 16:53:02 +00:00 by claunia · 1 comment
Owner

Originally created by @hswlab on GitHub (Jan 10, 2025).

Originally assigned to: @GregorBiswanger on GitHub.

equal issues

I viewed this issue https://github.com/ElectronNET/Electron.NET/issues/374, but I think i have a different problem, because I tested on a running electron application where electron was already running.

For debugging I added the Running Process to my debugger
image

Version

  • node.js: v22.12.0
  • electron: v18.12.1
  • I'm not sure which version of Electron CLI is installed. I installed all Electron .NET dependencies in december 2024

Project details

image
This is a windows application

Problem

The update process worked for a long time, but at some point it stopped working.
During debugging I noticed that the method Electron.AutoUpdater.CheckForUpdatesAsync() throws a nullpointer exception. Unfortunately, I cannot look into the method during the debugging process to say more precisely where the problem lies.

image

The rest of my application is working just fine, it is only the updater, which is not working anymore. The call of Electron.App.GetVersionAsync() is also giving me a valid number.

Originally created by @hswlab on GitHub (Jan 10, 2025). Originally assigned to: @GregorBiswanger on GitHub. ### equal issues I viewed this issue https://github.com/ElectronNET/Electron.NET/issues/374, but I think i have a different problem, because I tested on a running electron application where electron was already running. For debugging I added the Running Process to my debugger ![image](https://github.com/user-attachments/assets/32b4c701-e454-4796-8fa2-737d72eb14f8) ### Version - node.js: v22.12.0 - electron: v18.12.1 - I'm not sure which version of Electron CLI is installed. I installed all Electron .NET dependencies in december 2024 ### Project details ![image](https://github.com/user-attachments/assets/199962a9-0008-4c59-92a3-160b17c6b43b) This is a windows application ### Problem The update process worked for a long time, but at some point it stopped working. During debugging I noticed that the method Electron.AutoUpdater.CheckForUpdatesAsync() throws a nullpointer exception. Unfortunately, I cannot look into the method during the debugging process to say more precisely where the problem lies. ![image](https://github.com/user-attachments/assets/f6f5fff7-590b-4582-8ff4-8c853fb0f0ec) The rest of my application is working just fine, it is only the updater, which is not working anymore. The call of Electron.App.GetVersionAsync() is also giving me a valid number.
claunia added the bug label 2026-01-29 16:53:02 +00:00
Author
Owner

@FlorianRappl commented on GitHub (Oct 31, 2025):

Outdated - use ElectronNET.Core and ElectronNET.Core.AspNet.

See Wiki / What's New.

@FlorianRappl commented on GitHub (Oct 31, 2025): Outdated - use `ElectronNET.Core` and `ElectronNET.Core.AspNet`. See [Wiki / What's New](https://github.com/ElectronNET/Electron.NET/wiki/What's-New).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#967