Skip to content

Commit

Permalink
fix null verification in "Comment" method
Browse files Browse the repository at this point in the history
  • Loading branch information
IelyzavetaKalinchuk committed Apr 26, 2017
1 parent 1002399 commit 0fbf1c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 0fbf1c3

Please sign in to comment.