NullReferenceException on instantiated object?

前端 未结 4 496
无人及你
无人及你 2021-01-26 08:24

This is a segment of code from an app I\'ve inherited, a user got a Yellow screen of death:

Object reference not set to an instance of an object

4条回答
  •  难免孤独
    2021-01-26 08:39

    Sprinkle in a few variables for all the property-queries on that (loooooongg) line temporarily. Run the debugger, Check values and Corner the little bug.

提交回复
热议问题