Search Issue Tracker
Duplicate
Votes
1
Found in
2017.3.1f1
Issue ID
1002745
Regression
No
Null reference exception is being thrown when Tag from the Tag list is removed
To reproduce:
1. Open project attached by QA
2. Remove "TagB" from the tag list
3. Build and run project
4. Check player.log or Xcode console or android logcat
Expected result: GameObject.FindGameObjectWithTag().GetComponent<>(); should find correct component since the tag that was under the "TagB" is still valid.
Actual result: Null reference exception is being thrown
Reproduced with: Unity 2017.1.3p1, 2017.2.1p4, 2017.3.1p1, 2018.1.0b8, 2018.2.0a1
iOS, Android, PC platforms
Device: iPad Mini 3 iOS 10.3.2, Samsung galaxy Note 8
Workaround: Restart Unity before building iOS project
-
andrewsoohwanlee
Mar 21, 2018 02:38
Another note: you're able to run your scene in the editor (it doesn't mind the deleted tag). This makes it a bit more difficult/confusing to debug.
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
- ArgumentOutOfRangeException when manipulating the Project Settings search bar
- [Linux] Touch freezes in Player when any mouse button is clicked
- UnityEngine.Rendering.Volume.OnEnable() is called twice before OnDisable() creating multiple copies of the same volume when a volume is enabled right after Domain Reload when entering Play Mode
- Hinge Joint transforms are reset when toggling the "useMotor" property
- Motion Vector texture reports incorrect Mesh data when Mesh is coming from off-screen
This is a duplicate of issue #970739