• Administrator
  •  
    Support Ukraine
    If you experience any problems with the forum (it is not visible, there is no way to post messages, or some functionality does not work), please let us know. If you have problems with registration or you did not receive confirmation letter, let us know and we will activate your account manually.
    If you get an "The submitted form was invalid. Try submitting again" error, delete cookies, then try again.
     

Fatal|System.NullReferenceException

Archive closed topics

Moderators: Internal error, Watchmens

Locked
User avatar
chb
WF maker
Posts: 15
Joined: 26 Apr 2018, 21:28
Location: near Vienna
Has thanked: 10 times
Contact:

Fatal|System.NullReferenceException

Post 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
Don't worry, eat Curry!
evanchatter

Post 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
Locked

Return to “Closed topics”

Who is online

Users browsing this forum: No registered users and 1 guest