Description

Having a custom event with an empty Soft Class Reference as an input causes packaging to fail if nativization is enabled as the event nativizes with a const TSoftClassPtr<>& and the compiler cannot convert a temporary nullptr to a reference.

Regression?: No
This occurs in 4.18 and 4.19

Steps to Reproduce
  1. Create a new project
  2. Create a new Blueprint
  3. Add a new custom event
  4. Add an Actor > Soft Class Reference as an input
  5. Call the event on BeginPlay
  6. Add an instance of the Blueprint to the level
  7. Save the map
  8. Add the map as the default game map
  9. Enable Inclusive Nativization
  10. Package for Win64
    Result: Packaging fails due to the event nativizing with a const TSoftClassPtr<>& and the compiler cannot convert a temporary nullptr to a reference
    Expected: Packaging succeeds

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-62157 in the post.

1
Login to Vote

Fixed
ComponentUE - Gameplay - Blueprint
Affects Versions4.184.194.204.21
Target Fix4.22
Fix Commit4521990
Main Commit4736445
Release Commit4862694
CreatedJul 25, 2018
ResolvedOct 29, 2018
UpdatedFeb 12, 2019
View Jira Issue