diff Implab/Diagnostics/Extensions.cs @ 140:f973c5df9972 v2

fixes
author cin
date Fri, 20 Feb 2015 15:58:34 +0300
parents f75cfa58e3d4
children
line wrap: on
line diff
--- a/Implab/Diagnostics/Extensions.cs	Wed Feb 18 18:02:02 2015 +0300
+++ b/Implab/Diagnostics/Extensions.cs	Fri Feb 20 15:58:34 2015 +0300
@@ -19,7 +19,7 @@
                 },
                 reason => {
                     TraceContext.Instance.EnterLogicalOperation(op,true);
-                    TraceLog.TraceInformation("promise cancelled {0}", reason.Message);
+                    TraceLog.TraceInformation("promise cancelled {0}", reason == null ? "<no-reason>" : reason.Message);
                     TraceLog.EndLogicalOperation();
                     TraceContext.Instance.Leave();
                 }