Skip to content

Fix bugs in UpgradeService#699

Open
bharatvansh wants to merge 1 commit intoTichau:integrationfrom
bharatvansh:fix/upgrade-service-bugs
Open

Fix bugs in UpgradeService#699
bharatvansh wants to merge 1 commit intoTichau:integrationfrom
bharatvansh:fix/upgrade-service-bugs

Conversation

@bharatvansh
Copy link
Copy Markdown
Contributor

This PR fixes two bugs in UpgradeService:

  1. NullReferenceException prevention: Added a null check for the task in CheckForUpgrade before awaiting it. If task is null (e.g., if the upgrade check is not due yet or an error occurred), the method now correctly returns null.
  2. Corrected BaseURI reference: Fixed a reference to Helpers.BaseURI in DownloadLatestVersionDescription which was causing a compilation error. It has been replaced with the correct UpgradeService.BaseURI reference.

UCHIHAHA103 pushed a commit to UCHIHAHA103/FileConverter that referenced this pull request Apr 26, 2026
1. Cherry-pick PR Tichau#699 fixes:
   - CheckForUpgrade: null-check 'task' before await (NullReferenceException)
   - DownloadLatestVersionDescription: fix Helpers.BaseURI -> UpgradeService.BaseURI
   Fixes Tichau#747

2. Update BaseURI to point to UCHIHAHA103/FileConverter fork so users
   receive updates from this fork instead of the original repo.
   Update version.xml and version (x86).xml URLs accordingly.

3. Complete zh-CN translations: add 8 missing hardware acceleration
   mode strings (HardwareAccelerationMode, CUDA, AMF, D3D11, DXVA2,
   Off, OpenCL, Vulkan).

Co-authored-by: bharatvansh <bharatvansh@users.noreply.github.com>
Co-authored-by: sr093906 <sr093906@users.noreply.github.com>
UCHIHAHA103 pushed a commit to UCHIHAHA103/FileConverter that referenced this pull request Apr 29, 2026
…eckForUpgrade + DownloadProgressChanged safety

- BaseURI: Tichau/FileConverter -> UCHIHAHA103/FileConverter (users were
  being redirected to upstream releases instead of fork releases)
- CheckForUpgrade: add null check for task before await (PR Tichau#699 fix,
  Release mode skips check if < 1 day since last check -> task is null)
- DownloadInstaller: unsubscribe DownloadProgressChanged before setting
  UpgradeVersionDescription to null (prevents NullRef in callback)
- WebClient_DownloadProgressChanged: null-guard UpgradeVersionDescription
- ISSUES_BACKLOG.md: document right-click menu root cause analysis,
  update Sprint 1 status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant