Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/17/21 16:25:19 (3 years ago)
Author:
dpiringe
Message:

#3026

  • fixed a wrong description for the invert parameter in RunCollectionValueRemover
  • fixed the usage of a wrong formatter in RunCollectionSRSolutionGraphVizFormatter
  • fixed a bug in ListJsonItem where an empty guid field can cause an exception
  • started to rework the RegressionProblemDataConverter -> it causes a bug with the symbol Variable of the TypeCorherentGrammar (maybe more grammars)
    • the reasons for the rework: this converter was already the source of some problems in the past; it uses a lot of reflection and dynamic objects -> it is very complicated to read/understand
  • added an official description property Description in the metadata part of a template + entry in Constants.cs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/JsonItems/ListJsonItem.cs

    r18055 r18056  
    2020
    2121    public override void SetJObject(JObject jObject) {
    22       TargetTypeGUID = jObject[nameof(IListJsonItem.TargetTypeGUID)].ToString();
    23       var targetType = Mapper.StaticCache.GetType(new Guid(TargetTypeGUID));
     22      var guidJObj = jObject[nameof(IListJsonItem.TargetTypeGUID)];
    2423      IList<IJsonItem> items = new List<IJsonItem>();
    25       foreach (JObject obj in jObject[nameof(IValueJsonItem.Value)]) {
    26         items.Add((IJsonItem)obj.ToObject(targetType));
     24      if (guidJObj != null) {
     25        TargetTypeGUID = jObject[nameof(IListJsonItem.TargetTypeGUID)].ToString();
     26        var targetType = Mapper.StaticCache.GetType(new Guid(TargetTypeGUID));
     27        foreach (JObject obj in jObject[nameof(IValueJsonItem.Value)]) {
     28          items.Add((IJsonItem)obj.ToObject(targetType));
     29        }
    2730      }
    2831      Value = items.ToArray();
Note: See TracChangeset for help on using the changeset viewer.