Skip to main content

Timeline for NullReferenceException in Unity

Current License: CC BY-SA 3.0

21 events
when toggle format what by license comment
Sep 16, 2020 at 14:05 history edited Vaillancourt
edited tags
Jun 16, 2020 at 10:15 history edited CommunityBot
Commonmark migration
Jun 7, 2017 at 3:00 answer added David Dimalanta timeline score: -5
Jun 5, 2017 at 11:58 history tweeted twitter.com/StackGameDev/status/871697645097684995
Jun 5, 2017 at 11:11 history edited doppelgreener CC BY-SA 3.0
deleted 2 characters in body
Feb 6, 2017 at 8:42 vote accept Hellium
S Feb 6, 2017 at 8:36 history suggested Seyed Morteza Kamali
adding a tag for more describtion
Feb 6, 2017 at 3:13 review Suggested edits
S Feb 6, 2017 at 8:36
Feb 3, 2017 at 17:41 comment added DMGregory Unity has a few unique/characteristic ways to trigger these errors, through unassigned Inspector fields, failed GetComponent or Find attempts, or through its variant flavour "MissingReferenceException" when you had a valid reference but it got Destroy()ed. So, I think answers to this question in the context of Unity have good potential to be useful to the community, even if the Exception itself is very general.
Feb 2, 2017 at 9:11 comment added Gnemlock Regardless, I am posting a community wiki, in case this question sticks around. I feel it is important to note that it is in no way complete, and only represents a small amount of examples I could find.
Feb 2, 2017 at 9:08 answer added Gnemlock timeline score: 5
Feb 2, 2017 at 8:32 comment added Gnemlock The current answer also makes no note of anything specific to Unity (other than using Unity specific types in examples). It is, in fact, a generic programming response. We do not use answers in close arguments, but given it is a self answer, it does go towards supporting argument of intention.
Feb 2, 2017 at 8:31 comment added Gnemlock @Pikalek, we have also broadened our scope for what we allow in terms of general programming. This was clarified when I asked about it in meta. I realise, now, that this might still fit the parameters of 'too generic', as per Josh's answer.
Feb 2, 2017 at 8:03 history edited Hellium
edited tags
Feb 2, 2017 at 8:02 history rollback Hellium
Rollback to Revision 1
Feb 2, 2017 at 8:01 comment added Hellium While the "NullReferenceException" is, indeed, a general programming question, here, the question covers specifically the exception in Unity : where can it be encountered in Unity programming, and how to solve them (see the various examples).
Feb 2, 2017 at 5:11 review Close votes
Feb 10, 2017 at 0:49
Feb 2, 2017 at 4:51 comment added Pikalek This seems like a general programming question & not game dev specific. OP's answer to own question includes a link to SO that covers this topic.
Feb 1, 2017 at 23:47 history edited Gnemlock
removing improper tag
S Feb 1, 2017 at 23:10 answer added Hellium timeline score: 17
S Feb 1, 2017 at 23:10 history asked Hellium CC BY-SA 3.0