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
Comments (1)
-
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
This is a duplicate of issue #970739