Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/11/10 08:27:12 (14 years ago)
Author:
gkronber
Message:

Fixed exception in plugin view. #989

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/PluginView.cs

    r3754 r3763  
    4040    private IPluginDescription plugin;
    4141
    42     public PluginView() : base() {
     42    public PluginView()
     43      : base() {
    4344      InitializeComponent();
    4445      PopulateImageList();
    4546    }
    4647
    47     public PluginView(IPluginDescription plugin) : base() {
     48    public PluginView(IPluginDescription plugin)
     49      : base() {
    4850      InitializeComponent();
    4951      PopulateImageList();
     
    7274      if (localPlugin != null) {
    7375        stateTextBox.Text = localPlugin.PluginState.ToString();
    74         errorTextBox.Text = localPlugin.LoadingErrorInformation.Replace(Environment.NewLine, " ");
     76        if (!string.IsNullOrEmpty(localPlugin.LoadingErrorInformation))
     77          errorTextBox.Text = localPlugin.LoadingErrorInformation.Replace(Environment.NewLine, " ");
    7578        toolTip.SetToolTip(stateTextBox, stateTextBox.Text + Environment.NewLine + errorTextBox.Text);
    7679        toolTip.SetToolTip(errorTextBox, errorTextBox.Text);
Note: See TracChangeset for help on using the changeset viewer.