State is null in replacingStringFieldImp

Thread is closed for posting
1 posts, 0 answers
  1. Constantine
    Constantine avatar
    7 posts
    Member since:
    May 2014

    Posted 19 Apr 2016 Link to this post


    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;
       string stringField = this.state.getStringField(fmd.stateFieldNo);
       str = stringField;
      catch (Exception exception)
       return null;
      return str;


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

Back to Top