I Have got the following constructor :
private PicklistHelper(string docId, string prodId, string user, string formProdId, string filepath,string parts)
{
this.documentId = docId;
this.prodId = prodId;
this.user = user;
this.filepath = filepath;
this.parts = parts;
this.formProdId = formProdId;
Log.Message("test parts = " + this.parts);
}
The logmessage does show a value for the parts variable. After that I call a function.
private ArrayList GetPartDatasets()
{
Log.Message("test line 1");
ArrayList picklist = new ArrayList();
Log.Message("test line 2 " + parts);
string[] partIds = parts.Split(new[] { ';' });
Log.Message("test line 3");
the 2nd test line appears in the logs but the parts variable is empty. after that a null ref error appears.
The PicklistHelper object is created in a function which is called multiple times in a row. Any idea what causes the problem ?