5 Replies Latest reply on Jul 14, 2014 8:31 AM by robert.krisher

    IMMPersistentListItem.SaveToField gives a NullReferenceException

    Alshareef Hassan Alhareth

      I am trying to update the value of an attribute programmatically.

      But the SaveToField gives me a null pointer exception.

       

      Following is an excerpt from the C# code. Any pointers on how to solve this.

       

      IMMPersistentListItem persist = (IMMPersistentListItem)ductBankConfig;

       

      int dbcFieldIndex = conduitFeature.Fields.FindField(configField.Name);

      IRow row = (IRow)conduitFeature;

      ....

      ....

      Change some attribute

      ....

      ....

       

      //store the config back to the persist

      persist.SaveToField(row, dbcFieldIndex);

       

       

      Daniel Rouleau

      Robert Krisher