Add null check for unit tests
authorThomas
Tue, 22 May 2018 16:25:09 +0200
changeset 22087051e9283317
parent 2204 94aaeb734ef2
child 2209 bebcde071bec
child 2211 7d2c2dd47c17
Add null check for unit tests
MsgProcessor.cs
     1.1 --- a/MsgProcessor.cs	Fri May 18 12:14:05 2018 +0200
     1.2 +++ b/MsgProcessor.cs	Tue May 22 16:25:09 2018 +0200
     1.3 @@ -928,7 +928,7 @@
     1.4              bool success = false;
     1.5              TextMessage src = new TextMessage();
     1.6              TextMessage dst = new TextMessage();
     1.7 -            string[] dstKeyList = Globals.ThisAddIn.Settings.ExtraKeys ?? new string[0];
     1.8 +            string[] dstKeyList = Globals.ThisAddIn?.Settings?.ExtraKeys ?? new string[0];
     1.9              pEpRating rating = pEpRating.pEpRatingCannotDecrypt;
    1.10              Globals.ReturnStatus sts;
    1.11