Changeset 8642


Ignore:
Timestamp:
Feb 20, 2020, 4:34:02 PM (2 years ago)
Author:
kopal
Message:

SpanishStripCipher:

  • fixed a bug: when keyword was set to null, CrypTool 2 crashed here with a nullpointer exception; now, we check for null
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/SpanishStripCipher/SpanishStripCipher.cs

    r8109 r8642  
    4747
    4848        #region Data Properties
    49 
    50         /// <summary>
    51         /// HOWTO: Input interface to read the input data.
    52         /// You can add more input properties of other type if needed.
    53         /// </summary>
     49     
    5450        [PropertyInfo(Direction.InputData, "InputCaption", "InputTooltip", true)]
    5551        public string Input
     
    5854            set;
    5955        }
    60 
    61         /// <summary>
    62         /// HOWTO: Output interface to write the output data.
    63         /// You can add more output properties ot other type if needed.
    64         /// </summary>
     56     
    6557        [PropertyInfo(Direction.OutputData, "OutputCaption", "OutputTooltip")]
    6658        public string Output
     
    7668            set
    7769            {
    78                 if (settings.Keyword != value.ToUpper())
     70                if (!string.IsNullOrEmpty(value) && settings.Keyword != value.ToUpper())
    7971                {
    8072                    settings.Keyword = value.ToUpper();
Note: See TracChangeset for help on using the changeset viewer.