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

Asset - Database

-

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)

  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

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.