Object reference not set to an instance of an object (R)

hy everyone can you solve this
everything is fine when but stuck on this
i dot know how to fix this.

Can you share what issue you are facing?

Hey @Ejaz_Ab, debug your project. At the error point, the variable you are using is null (it doesn’t contain or store any value).

Best regards,
Ajay Mishra

@Ejaz_Ab,

The error indicates that the variable you are using is not initialised. For example if you have a datatable and it’s not initialised but you tried to check how many rows are there using dtVariable.RowCount this will give you Object reference not set to an instance of an object.

Check your variable which is throwing this error.

@Ejaz_Ab

Generally you get this error when the used variable or argument is null or not initialized

Cheers