Page 1 of 1

Fatal|System.NullReferenceException

Posted: 19 Oct 2018, 16:36
by chb
Hey You!
Trying to modify i drag a .bin-file over WatchFace.exe and it doesn't work. Log-File:
Fatal|System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei WatchFace.Parser.Utils.ParametersConverter.Parse[T](List`1 descriptor, String path)
bei WatchFace.Program.ParseResources(Reader reader)

Any idea? Greetings from Austria, Europe

Re: Fatal|System.NullReferenceException

Posted: 30 Oct 2018, 05:56
by evanchatter
To fully understand why a NullReferenceException is thrown, it is important to know the difference between value types and reference types.

So, if you're dealing with value types, NullReferenceExceptions can not occur. Though you need to keep alert when dealing with reference types!

Only reference types, as the name is suggesting, can hold references or point literally to nothing (or 'null'). Whereas value types always contain a value.

Reference types (these ones must be checked):
  • dynamic
    object
    string
Value types (you can simply ignore these ones):
  • Numeric types
    Integral types
    Floating-point types
    decimal
    bool
    User defined structs