Search Issue Tracker
Fixed in 1.2.x or higher
Votes
1
Found in [Package]
preview-1.1.0
Issue ID
1162170
Regression
No
Addressables - ArgumentOutOfRangeException occurs when attempting to give a profile a name with 0 characters
If you attempt to create a new Addressables profile with an empty name, an ArgumentOutOfRangeException occurs.
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <23c160f925be47d7a4fd083a3a62c920>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <23c160f925be47d7a4fd083a3a62c920>:0)
System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <23c160f925be47d7a4fd083a3a62c920>:0)
UnityEditor.AddressableAssets.GUI.AddressableAssetSettingsInspector.OnInspectorGUI () (at Library/PackageCache/com.unity.addressables@1.1.0-preview/Editor/GUI/AddressableAssetSettingsInspector.cs:171)
UnityEditor.UIElements.InspectorElement+<CreateIMGUIInspectorFromEditor>c__AnonStorey1.<>m__0 () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorElement.cs:494)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
1. Open Unity
2. Open the attached project
3. In Project View, select Assets/AddressableAssetsData/AddressableAssetSettings.asset
4. In the Inspector, under Profiles, add a profile
5. When choosing a name for the profile, delete all the characters so the name is empty
6. Confirm the profile name
Expected Result:
No errors or exceptions occur in the console.
Actual Result:
An ArgumentOutOfRangeException occurs.
Tested on Windows.
Occurs on version preview-1.1.0, preview-1.0.0, preview-0.8.0
Comments (1)
-
Akhil1195
Jul 05, 2019 09:21
same issue i have
can you please help me to recover the error.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Resolution Note (fix version 1.2.x or higher):
UI has been redone and does not allow 0 length profile name.