From 0fbf1c3f7567281365d0823d202abd80ad8f331d Mon Sep 17 00:00:00 2001 From: "DK\\IEKA" Date: Wed, 26 Apr 2017 18:47:57 +0300 Subject: [PATCH] fix null verification in "Comment" method --- .../Shell/Applications/Workbox/WorkboxForm.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sitecore.Support.157166/Shell/Applications/Workbox/WorkboxForm.cs b/src/Sitecore.Support.157166/Shell/Applications/Workbox/WorkboxForm.cs index 449cf34..31cf587 100644 --- a/src/Sitecore.Support.157166/Shell/Applications/Workbox/WorkboxForm.cs +++ b/src/Sitecore.Support.157166/Shell/Applications/Workbox/WorkboxForm.cs @@ -46,7 +46,7 @@ public void Comment(ClientPipelineArgs args) } ItemUri itemUri = new ItemUri((Context.ClientPage.ServerProperties["id"] ?? string.Empty).ToString(), Language.Parse((string)(Context.ClientPage.ServerProperties["language"] as string)), Sitecore.Data.Version.Parse((string)(Context.ClientPage.ServerProperties["version"] as string)), Context.ContentDatabase); bool flag = ((args.Parameters["ui"] != null) && (args.Parameters["ui"] == "1")) ? ((bool)true) : ((args.Parameters["suppresscomment"] == null) ? ((bool)false) : ((bool)(args.Parameters["suppresscomment"] == "1"))); - if ((!args.IsPostBack && (@null.IsNull)) && !flag) + if ((!args.IsPostBack && !@null.IsNull) && !flag) { WorkflowUIHelper.DisplayCommentDialog(itemUri, @null); args.WaitForPostBack();