Skip to content

Commit e7548c6

Browse files
authored
FIX: Fixed exception in Input Action Asset Editor window when typing whitespace into the search field. (#838)
1 parent ca4201e commit e7548c6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Packages/com.unity.inputsystem/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ however, it has to be formatted properly to pass verification tests.
1212
### Fixed
1313

1414
- Exceptions in scenes of `Visualizers` sample if respective device was not present on system (e.g. in `PenVisualizer` if no pen was present in system).
15+
- Fixed exception in Input Action Asset Editor window when typing whitespace into the search field.
1516
- Fixed control scheme popup window in input action asset editor window showing in the correct screen position on windows.
1617

1718
#### Actions

Packages/com.unity.inputsystem/InputSystem/Utilities/StringHelpers.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ public static IEnumerable<Substring> Tokenize(this string str)
173173
while (pos < length && char.IsWhiteSpace(str[pos]))
174174
++pos;
175175

176+
if (pos == length)
177+
break;
178+
176179
if (str[pos] == '"')
177180
{
178181
++pos;

0 commit comments

Comments
 (0)