-
Notifications
You must be signed in to change notification settings - Fork 0
Fix null data handling in Write_File_To_Path method #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Genie <[email protected]>
Caution Review failedThe pull request is closed. WalkthroughA validation step was added to the Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Co-authored-by: Genie <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
source/StoneAge.Data.FileSystem.Tests/FileSystemTests.cs
(1 hunks)source/StoneAge.Data.FileSystem/FileSystem.cs
(2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- source/StoneAge.Data.FileSystem/FileSystem.cs
🧰 Additional context used
🪛 GitHub Check: build
source/StoneAge.Data.FileSystem.Tests/FileSystemTests.cs
[failure] 124-124:
'IDocumentBuilderData' does not contain a definition for 'Create_Document' and no accessible extension method 'Create_Document' accepting a first argument of type 'IDocumentBuilderData' could be found (are you missing a using directive or an assembly reference?)
[failure] 124-124:
'IDocumentBuilderData' does not contain a definition for 'Create_Document' and no accessible extension method 'Create_Document' accepting a first argument of type 'IDocumentBuilderData' could be found (are you missing a using directive or an assembly reference?)
🪛 GitHub Actions: .NET
source/StoneAge.Data.FileSystem.Tests/FileSystemTests.cs
[error] 124-124: CS1061: 'IDocumentBuilderData' does not contain a definition for 'Create_Document' and no accessible extension method 'Create_Document' accepting a first argument of type 'IDocumentBuilderData' could be found (are you missing a using directive or an assembly reference?)
This pull request addresses a potential bug in the
Write_File_To_Path
method of theFileSystem.cs
file. The method now includes a check to ensure that thefile.Data
is not null before attempting to write to the file. Iffile.Data
is null, an error message is added to theresult.ErrorMessages
, and the method returns early, preventing any further execution that could lead to exceptions. This change improves the robustness of the file writing process.Original Task: DotnetCore-FileSystem/s7xlwblohrt1
Author: Travis Frisinger
Summary by CodeRabbit