Changeset 8643


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

BB84PhotonEncoder:

  • fixed a bug: when InputKey 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/BB84PhotonEncoder/BB84PhotonEncoder.cs

    r5726 r8643  
    6767            set
    6868            {
    69                 string newInput = filterValidInput(value);
    70                 this.inputKey = newInput;
     69                if (!string.IsNullOrEmpty(value))
     70                {
     71                    string newInput = filterValidInput(value);
     72                    this.inputKey = newInput;
     73                }
    7174            }
    7275        }
Note: See TracChangeset for help on using the changeset viewer.