mirror of
https://github.com/Corsinvest/cv4pve-autosnap.git
synced 2026-04-25 00:45:56 +03:00
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cv4pve-autosnap#110
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Corsinvest/cv4pve-autosnap/pull/110
Author: @franklupo
Created: 12/23/2025
Status: ✅ Merged
Merged: 12/23/2025
Merged by: @franklupo
Base:
master← Head:fix/issue-109-null-reference-environments📝 Commits (1)
cf7e5ccFix NullReferenceException in PhaseEventArgs.Environments property📊 Changes
6 files changed (+14 additions, -4 deletions)
View changed files
📝
Directory.Build.props(+1 -1)📝
hooks/template.bat(+0 -0)📝
hooks/template.ps1(+0 -0)📝
hooks/template.sh(+0 -0)➕
hooks/wrapper-powershell.bat(+10 -0)📝
src/Corsinvest.ProxmoxVE.AutoSnap.Api/PhaseEventArgs.cs(+3 -3)📄 Description
Summary
Fixed bug #109 that caused a
NullReferenceExceptionwhen accessing theEnvironmentsproperty ofPhaseEventArgsduring job-level events.Problem
The crash occurred when the
Environmentsproperty attempted to access properties of theVmobject (VmId, Name, Type), but theVmparameter wasnullduring the following events:SnapJobStartSnapJobEndCleanJobStartCleanJobEndSolution
?.) forVmproperty accesses??) forVm.Nameto ensure non-null string valueVminstancesAdditional Changes
hook-template.*→template.*wrapper-powershell.bat)Testing
Hook scripts now work correctly even for job-start/job-end phases where VM is null, preventing the crash.
Fixes #109
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.