Search Issue Tracker
Won't Fix
Votes
4
Found in
5.5.0f3
Issue ID
860560
Regression
Yes
FindGameObjectWithTag throws NullReferenceException in the Build mode
To reproduce:
1. Open attached project;
2. Run the project in the Play Mode;
3. Build and run the project on PC, Mac & Standalone platform;
4. Notice that only one card appears.
Expected result: no NullReferenceException is in the build mode.
Actual result: NullReferenceException: Object reference not set to an instance of an object at solitaireBlitzBoardManager.InstantiateCards () [0x00075] in C:\Users\viliu\Desktop\case_860560-_SolitaireBlitz\Assets\wrongPlanet.com\Scripts\managers\solitaireBlitzBoardManager.cs:334
NullReferenceException: Object reference not set to an instance of an object at solitaireBlitzBoardManager.Start () [0x00002] in C:\Users\viliu\Desktop\case_860560-_SolitaireBlitz\Assets\wrongPlanet.com\Scripts\managers\solitaireBlitzBoardManager.cs:121
Reproduced on: 5.5.0p3; 5.6.0b3
Not reproduced: 5.4.3f1; 5.3.6f1; 5.2.4f1
Note: When in the solitaireBlitzBoardmanager script line - 40 is commented and the play mode in editor is entered, console throws the same NullReferenceException like in the Build mode.
Note: photos attached.
Comments (2)
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
- WebGL build dependencies are not refreshed until the Editor is restarted
- “Audio Random Container” allows adding unlimited number in “Audio Clips” numeric field, causing Editor to freeze
- In Deferred rendering path, mixed lights don't render when enabling "Use Rendering Layers" in the Decal renderer feature
- [Windows] Special characters in file names are sorted to the end of the alphabet in the Project window
- Information box icons are not contained within the information box bounds in Render Pipeline Converter window
smallUser
Feb 18, 2017 01:23
NullReferenceException: Object reference not set to an instance of an object
void Start () {
targetPlayer = GameObject.FindGameObjectWithTag("player1Target").transform;
}
smallUser
Feb 18, 2017 01:19
This is happen also in android device.
Environment:
Mac OS Sierra 10.12.2
Android version 5.1
Unity Version 5.5.1p4
License Type:Unity Pro, Team License, Android Pro, Windows Store Pro, Tizen Pro, Samsung TV Pro