This is a migrated thread and some comments may be shown as answers.

State is null in replacingStringFieldImp

0 Answers 29 Views
Data Access Free Edition
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Constantine
Top achievements
Rank 1
Constantine asked on 19 Apr 2016, 11:16 AM

Hi.

I'm using TDA 2015.1.225.1. 

I've got a NullReferenceException in OpenAccessRuntime.DataObjects.PCStateMan.replacingStringFieldImp.

this.state is null in the code below:

internal string replacingStringFieldImp(PersistenceCapable pc, FieldMetaData fmd)
 {
  string str;
  try
  {
   string stringField = this.state.getStringField(fmd.stateFieldNo);
   this.setLoaded(fmd);
   str = stringField;
  }
  catch (Exception exception)
  {
   this.handleException(exception);
   return null;
  }
  return str;
 }

 

What can I do to fix the NullReferenceException? Why does this situation occur?

Tags
Data Access Free Edition
Asked by
Constantine
Top achievements
Rank 1
Share this question
or