Null in ios myth?

I have got a suggestion from ios developer in my team that, in older version of unity. When it got built into ios platform. Sometimes in a class that not initialize a field and leave it as null would have fault memory value instead of null and that would be error. So he require that every field must be initialized and must not leave it null at all cost

Which it really not practical. It cause garbage in the system when we don’t really need that field in some object

He said it is not always happen and so it too hard to detect and test in just ios device

So I would like to know, is this a myth? Is it really exist? Is it got fixed?

I never did something like that, and we have an app with + 1M downloads, and never got this problem.
But if you try using a var that is null, it will throw an exception, for sure

1 Like