Search Issue Tracker

Fixed

Fixed in 6000.6.0a6

Under Consideration for 6000.3.X, 6000.4.X

Votes

0

Found in

6000.3.15f1

6000.4.6f1

6000.5.0b7

6000.6.0a6

Issue ID

UUM-141838

Regression

Yes

NullReferenceException is thrown when assigning a Lens Flare SRP asset to a Lens Flare Data SRP element

Steps to reproduce: # Create a new 3D URP project

  1. In the Hierarchy, create an Empty GameObject
  2. In the Inspector, add "Lens Flare (SRP)" Component
  3. Click "New" two times to create two assets
  4. Select one of those assets
  5. In the Inspector, click + button in the Elements list to add an element
  6. Change the Type to "Lens Flare Data SRP"
  7. Assign another created Lens Flare SRP asset
  8. Observe the Console

Actual results: "NullReferenceException: Object reference not set to an instance of an object" is thrown and the asset does not remain selected
Expected results: No errors are thrown, and the assigned Lens Flare SRP asset remains selected

Reproducible with versions: 6000.3.0f1 (d1870ce95baf), 6000.3.15f1, 6000.4.7f1, 6000.5.0b7, 6000.6.0a4
Not reproducible with versions: 6000.0.75f1, 6000.3.0b10
Can't test with: 6000.3.0b1{}-{}6000.3.0b5 ("Ambiguous match found" errors prevent from selecting the Asset itself - the Inspector is empty in these versions on 6th step)

Tested on (OS): Windows 11, macOS 26.4

  1. Resolution Note:

    Fixed in 6000.6.0a6

  2. Resolution Note (fix version 6000.6.0a6):

    Fixed in 6000.6.0a6

Add comment

Log in to post comment