Free cookie consent management tool by TermsFeed Policy Generator

Changeset 17521


Ignore:
Timestamp:
04/27/20 16:24:59 (5 years ago)
Author:
mkommend
Message:

#2521: Fixed loading of start page samples due to missing types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Optimizer/3.3/StartPage.cs

    r17359 r17521  
    122122        NamedItem item;
    123123        try {
    124           item = (NamedItem)serializer.Deserialize(stream, false);
     124          item = (NamedItem)serializer.Deserialize(stream, out var info,false);
     125          if (item == null) item = new ErrorMessage(name, "Sample failed to load!");
    125126        } catch {
    126127          item = new ErrorMessage(name, "Sample failed to load!");
     
    204205
    205206    [Item("Error Message", "")]
    206     class ErrorMessage : NamedItem {
     207    private class ErrorMessage : NamedItem {
    207208      public override Image ItemImage => Common.Resources.VSImageLibrary.Error;
    208209
Note: See TracChangeset for help on using the changeset viewer.