Changeset 8644


Ignore:
Timestamp:
Feb 20, 2020, 5:01:30 PM (2 years ago)
Author:
kopal
Message:

BB84PhotonbaseGenerator:

  • 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/BB84PhotonbaseGenerator/BB84PhotonbaseGenerator.cs

    r8109 r8644  
    5656            set
    5757            {
    58                 this.inputKey = value;
     58                if (value == null)
     59                {
     60                    return;
     61                }
     62                inputKey = value;
    5963                if (inputKey is BigInteger)
    6064                {
Note: See TracChangeset for help on using the changeset viewer.