Error object reference not set to an instance of an object
Error object reference not set to an instance of an object
(OP)
I work on csharp i get error object reference not set to an instance of an object
code give me error
Error object reference not set to an instance of an object:
ElasticPartialUpdat.Create.error.get returned null.
so how to solve error please ?
code give me error
Error object reference not set to an instance of an object:
CODE --> csharp
var Data = result.items.Select(e => new { PartID = e.create._id, IsUpdated = e.create.error != null && e.create.error.reason !=null && !e.create.error.reason.Contains("document already exists") ? 0 : 1, ErrorStatus = e.create.error == null | (e.create.error.reason!=null && e.create.error.reason.Contains("document already exists")) ? null : e.create.error.reason }).ToList();
ElasticPartialUpdat.Create.error.get returned null.
so how to solve error please ?
RE: Error object reference not set to an instance of an object
Object.ReferenceEquals(null, myObjVar)