Forum Discussion

Marco's avatar
Marco
Contributor II
2 years ago

Error in BR: Object reference not set to an instance of an object.

Hi, I have the following code that gives me an error: Object reference not set to an instance of an object. Dim listMbrEntityD As New List(Of Member) Dim dimpkEntityD As New DimPk(mbrEntityD.Dim...
  • DanielWillis's avatar
    2 years ago

    The reason you got no values in your debug is probably the same reason you're getting the error. Something you're trying to use is not set to anything.

    E.g., mbrEntityD, dimpkEntityD, or the result of "BRApi.Finance.Members.GetBaseMembers(si, dimpkEntityD, mbrEntityD.MemberId)"

    Check those one by one and I think you'll find it.