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
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
- Files in the target folder are deleted without a proper warning when building an iOS project
This is a duplicate of issue #970739