0

oQual is a class variable which is assigned to one of the parameters as show in the code below, the problem is if watch this variable at runtime it is already populated with the correct values yet i am getting the NULLReference Exception on the commented line.

    Programme oPrograme;
    private Qualification oQual;

    public ProgrammeList(Qualification oQualification)
    {
        oPrograme = new Programme();
        oQual = new Qualification();
        oQual = oQualification;

        this.tQID.Text = oQual.getQualficationID().ToString(); //oQual is already populated yet i am getting null reference expection on this line
        this.tProgName.Text = oQual.getQualificationName();
        this.tProg_Saqa_reg_no.Text = oQual.getQualificationNqfLevel();
        this.tProg_nqf_level.Text = oQual.getQualificationSaqaNo();

    }

    protected void Page_Load(object sender, EventArgs e)
    {

    }

enter image description here enter image description here

Hybris
  • 11
  • 2

0 Answers0