Fix null deref issue in apply command#324
Fix null deref issue in apply command#324John-Leitch wants to merge 1 commit intoprom3theu5:mainfrom
Conversation
|
Qodo Merge was enabled for this repository. To continue using it, please link your Git account with your Qodo account here. PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
Qodo Merge was enabled for this repository. To continue using it, please link your Git account with your Qodo account here. PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
|
Any chance this can be merged? |
User description
This PR covers #231. In cases where
WriteSecretsOutToTempFilesis called,AspirateState.OutputPathis only set when read from state. In the event of ignoring previous state, this causes aNullReferenceException. This fix updatesWriteSecretsOutToTempFilesto fall back toAspirateState.InputPathin such cases.PR Type
Bug fix
Description
Fixes null dereference in
applycommand when previous state is ignoredEnsures fallback to
InputPathifOutputPathis null during secret writingImproves error handling for missing manifest path
Changes walkthrough 📝
KustomizeService.cs
Add fallback for manifest path to prevent null dereferencesrc/Aspirate.Services/Implementations/KustomizeService.cs
InputPathifOutputPathis null when writing secretsmessaging