Navigation
API > API/Plugins > API/Plugins/NUTUnrealEngine
Tests an RPC crash caused by empty FText's, as reported on the UDN here: https://udn.unrealengine.com/questions/213120/using-empty-ftexts-within-rpcs.html
UDN Post: "Using Empty FTexts within RPCs" Hey, we're using FTexts within RPCs functions (server -> client in my specific case) to pass localized strings. That works fine until the point when the server sends an empty FText. In that case both the FText members SourceString and DisplayString are null on client side which lead to crashes whenever you use something like ToString which assumes those are valid.
Is this the intended behavior? I'm using FTextInspector::GetSourceString(text) to run checks on these replicated FTexts now to catch this case. FTexts that are not empty work just fine.
Thanks, Oliver
| Name | UFTextCrash |
| Type | class |
| Header File | /Engine/Plugins/NetcodeUnitTest/NUTUnrealEngine/Source/NUTUnrealEngine/Classes/UnitTests/FTextCrash.h |
| Include Path | #include "UnitTests/FTextCrash.h" |
Syntax
UCLASS ()
class UFTextCrash : public UClientUnitTest
Inheritance Hierarchy
- FUnitLogInterface → UUnitTestBase → UUnitTest → UProcessUnitTest → UClientUnitTest → UFTextCrash
- UObjectBase → UObjectBaseUtility → UObject → UUnitTestBase → UUnitTest → UProcessUnitTest → UClientUnitTest → UFTextCrash
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UFTextCrash
(
const FObjectInitializer& ObjectInitializer |
UFTextCrash | UnitTests/FTextCrash.h |
Functions
Public
Overridden from UClientUnitTest
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ExecuteClientUnitTest() |
UnitTests/FTextCrash.h |
Overridden from UProcessUnitTest
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void NotifyProcessLog
(
TWeakPtr< FUnitTestProcess > InProcess, |
UnitTests/FTextCrash.h |
Overridden from UUnitTest
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void InitializeEnvironmentSettings() |
UnitTests/FTextCrash.h |