OUT-250: Fix sending of crash report in OpenPEPStoreRootFolder.
authorThomas
Wed, 12 Apr 2017 17:08:49 +0200
changeset 1634280d2aec46e5
parent 1627 71d248e3aded
child 1635 60ed384bb88f
child 1636 26932b710ac6
child 1637 d8f2608e18c3
OUT-250: Fix sending of crash report in OpenPEPStoreRootFolder.
Globals.cs
     1.1 --- a/Globals.cs	Wed Apr 05 13:58:35 2017 +0200
     1.2 +++ b/Globals.cs	Wed Apr 12 17:08:49 2017 +0200
     1.3 @@ -139,7 +139,7 @@
     1.4              if (continueSend)
     1.5              {
     1.6                  stateIn = new FormControlCrashReport.State();
     1.7 -                stateIn.AddressTo = Globals.ThisAddIn.Settings.CrashReportSendAddress;
     1.8 +                stateIn.AddressTo = Globals.ThisAddIn.Settings?.CrashReportSendAddress ?? PEPSettings.CRASH_REPORT_SEND_ADDRESS_DEFAULT;
     1.9                  stateIn.AddressFrom = null; // A message can be sent without a "from" address
    1.10  
    1.11                  // Get log
    1.12 @@ -198,7 +198,7 @@
    1.13                          "END OF REPORT"
    1.14                      });
    1.15  
    1.16 -                if (Globals.ThisAddIn.Settings.IsCrashReportVisible)
    1.17 +                if (Globals.ThisAddIn.Settings?.IsCrashReportVisible ?? true)
    1.18                  {
    1.19                      form = new FormCrashReport();
    1.20                      form.StartPosition = FormStartPosition.CenterParent;