0
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 05-09-20, 3:11 p.m. FATC25
0
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.
25-09-20, 11:11 a.m. Priyam_Nayak


0

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;

05-07-21, 10:18 a.m. markelvy


Log-in to answer to this question.