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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
This is a duplicate of issue #970739