Skip to content

Commit 84a67e1

Browse files
authored
Merge pull request #51 from VPDPersonal/fix/asp-23-null-typeselector-type-array-crashes-picker
Fix TypeSelector picker crash on null Type[] element
2 parents 908f6c2 + 4a9fdb6 commit 84a67e1

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Aspid.FastTools/Packages/tech.aspid.fasttools/Unity/Editor/Scripts/Types/Drawers/TypeSelectorPropertyDrawer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ private static void AddTypesFromMember(List<Type> types, MemberInfo member, obje
111111
return;
112112

113113
case Type[] typeArray:
114-
types.AddRange(typeArray);
114+
types.AddRange(typeArray.Where(t => t is not null));
115115
return;
116116

117117
case string assemblyQualifiedName:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
- A `null` element in a `Type[]` member referenced by a `string` / `SerializableType` `[TypeSelector]` field no longer throws `NullReferenceException` and aborts the type picker — null entries are now filtered out before building the candidate list. ([#51])
12+
1013
## [1.0.0-rc.5] — 2026-06-06
1114

1215
Packaging-only release. No functional or API changes versus `1.0.0-rc.4`.
@@ -136,6 +139,7 @@ Five installable samples shipped under `Samples~/` (UPM convention, imported via
136139
[#38]: https://github.com/VPDPersonal/Aspid.FastTools/pull/38
137140
[#43]: https://github.com/VPDPersonal/Aspid.FastTools/pull/43
138141
[#44]: https://github.com/VPDPersonal/Aspid.FastTools/pull/44
142+
[#51]: https://github.com/VPDPersonal/Aspid.FastTools/pull/51
139143
[Unreleased]: https://github.com/VPDPersonal/Aspid.FastTools/compare/v1.0.0-rc.5...HEAD
140144
[1.0.0-rc.5]: https://github.com/VPDPersonal/Aspid.FastTools/compare/v1.0.0-rc.4...v1.0.0-rc.5
141145
[1.0.0-rc.4]: https://github.com/VPDPersonal/Aspid.FastTools/compare/v1.0.0-rc.3...v1.0.0-rc.4

0 commit comments

Comments
 (0)