ahmedsalah
Active member
- Joined
- Sep 26, 2018
- Messages
- 32
- Programming Experience
- 3-5
I work on csharp i get error object reference not set to an instance of an object
code give me error
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:
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 ?