stride3d / stride3d/stride

Editor crashes on nullable value type fields

Open
#3,014 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
7.8k
Forks
1.2k
Avg merge
2d 17h
Merged PRs (30d)
49

Description

Release Type: GitHub source current branch

Version: Latest commit at time of report

Platform(s): Windows

Describe the bug
The editor crashes when handling nullable value types, e.g. float?

To Reproduce
Steps to reproduce the behavior:

  1. Define a component with a nullable value type field (e.g. float?)
  2. Add the component to an entity
  3. Attempt to edit the field in the editor
  4. Editor crashes

Expected behavior
Nullable value type fields should be editable like regular fields, where an empty string represents null

Screenshots
Not applicable

Log and callstacks
Not applicable

Additional context
It appears that the editor doesn't currently support nullable value types

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the crash in the editor with a component field declared as float? and trace the editor's field-editing entry point for nullable value types. Verify that the field can be edited without a crash, that an empty value represents null, and that regular nullable values remain editable.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
game-dev, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.