

Object reference not set to an instance of an object?
I was running a digester simulation and I encountered with this error 'Object reference not set to an instance of an object?'
https://drive.google.com/file/d/1DfgTDQ5m2Gufy0bSdNum-28eTeVBwieS/view?usp=sharing
DWSIM


The issue in this simulation is due to the user-defined compounds added. The added user-defined compounds have some missing physical properties because of which the volumetric flow rate of the initial feed stream is not getting calculated and causing errors in the subsequent material streams.


In a nutshell it means.. You are trying to access an object without instantiating it.. You might need to use the "new" keyword to instantiate it first i.e create an instance of it from class.
public class MyClass
{
public int Id {get; set;}
}
MyClass myClass;
myClass.Id = 0; //error comes here
You will have to use:
myClass = new MyClass();
myClass.Id = 0;