Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion NtoLib/Recipes/MbeTable/MbeTableFB.Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ private AppConfiguration LoadConfigurationInternal()
// Backwards compatibility: projects saved before the ConfigDirPath property existed (#67)
// deserialize with a null field, and a manually blanked property must not reach
// Path.Combine as a relative path. Both fall back to the pre-#67 location.
if (string.IsNullOrWhiteSpace(_configDirPath))
// The explicit null check narrows the compiler's null-state: net48 mscorlib has no
// [NotNullWhen(false)] on IsNullOrWhiteSpace, so the call alone would not.
if (_configDirPath is null || string.IsNullOrWhiteSpace(_configDirPath))
{
_configDirPath = Path.Combine(AppContext.BaseDirectory, DefaultConfigFolderName);
}
Expand Down
Loading