Trying to use UAT to build a plugin that has CanBeUsedWithUnrealHeaderTool set to true will fail due to a null reference exception (log from Main CL 4666322 attached). This happens because the plugin contains "UnrealHeaderTool" in the Supported Programs list. This results in a call to CompilePluginWithUBT() where the first parameter (FileReference HostProjectFile) is passed as null. CompilePluginWithUBT() does not check to make sure this parameter is valid before attempting to access the HostProjectFile.Directory member.
REGRESSION:
Yes. Prior to 4.21, the structure of the CompilePluginWithUBT() function was different so that it appeared to simply result in an empty string being set when the HostProjectFile parameter is null instead of failing the Build Plugin process. However, the Build Plugin process still failed with a different error.
RESULT:
The Build Plugin process fails with the following error: ERROR: System.NullReferenceException: Object reference not set to an instance of an object.
EXPECTED:
The Build Plugin process completes successfully
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-67712 in the post.
1 |
Component | UE - Foundation - Cpp Tools |
---|---|
Affects Versions | 4.21.1, 4.22 |
Target Fix | 4.22 |
Created | Dec 18, 2018 |
---|---|
Resolved | Jan 3, 2019 |
Updated | Feb 12, 2019 |