Skip to content

Commit

Permalink
Merge pull request #133 from EasyAbp/skip-hanling-if-dir-not-found
Browse files Browse the repository at this point in the history
Skip handling of statistic data update if dir is not found
  • Loading branch information
gdlcf88 authored Jun 14, 2024
2 parents 8a942a4 + 8e15e8a commit a1b355e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>5.3.0-preview.3</Version>
<Version>5.3.0-preview.4</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected virtual async Task UpdateStatisticDataAsync(Guid? directoryId)

var directory = await _fileRepository.FindAsync(directoryId.Value);

if (!directory.TryUpdateStatisticData(statisticData))
if (directory is null || !directory.TryUpdateStatisticData(statisticData))
{
break;
}
Expand Down

0 comments on commit a1b355e

Please sign in to comment.