Skip to content

Commit

Permalink
fix serialize json crash issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hxhb committed Jan 5, 2022
1 parent 9225d10 commit 24036e5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

void FAssetDependenciesInfo::AddAssetsDetail(const FAssetDetail& AssetDetail)
{
if(!AssetDetail.IsValid())
return;
FString CurrAssetModuleName = UFlibAssetManageHelper::GetAssetBelongModuleName(AssetDetail.PackagePath.ToString());
FSoftObjectPath CurrAssetObjectPath(AssetDetail.PackagePath);
FString CurrAssetLongPackageName = CurrAssetObjectPath.GetLongPackageName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,10 @@ bool UFlibAssetManageHelper::GetSpecifyAssetDetail(const FString& InLongPackageN
bRunStatus = true;
}
}
if(!bRunStatus)
{
UE_LOG(LogHotPatcher,Display,TEXT("Get %s AssetDetail failed!"),*InLongPackageName);
}
return bRunStatus;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1297,8 +1297,11 @@ FHotPatcherVersion UFlibPatchParserHelper::ExportReleaseVersionInfo(
for(FName LongPackageName:Parser.GetrParseResults())
{
FAssetDetail CurrentDetail;
UFlibAssetManageHelper::GetSpecifyAssetDetail(LongPackageName.ToString(),CurrentDetail);
ExportVersion.AssetInfo.AddAssetsDetail(CurrentDetail);
if(UFlibAssetManageHelper::GetSpecifyAssetDetail(LongPackageName.ToString(),CurrentDetail))
{
ExportVersion.AssetInfo.AddAssetsDetail(CurrentDetail);
}

}
}
}
Expand Down

0 comments on commit 24036e5

Please sign in to comment.