Skip to content

Commit

Permalink
fix NPE in sql executions page.
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangxb1987 committed Feb 4, 2018
1 parent 551dff2 commit f1ee7fa
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private[ui] abstract class ExecutionTable(
}

private def descriptionCell(execution: SQLExecutionUIData): Seq[Node] = {
val details = if (execution.details.nonEmpty) {
val details = if (execution.details != null) {
<span onclick="clickDetail(this)" class="expand-details">
+details
</span> ++
Expand All @@ -190,8 +190,10 @@ private[ui] abstract class ExecutionTable(
Nil
}

val desc = {
val desc = if (execution.description != null) {
<a href={executionURL(execution.executionId)}>{execution.description}</a>
} else {
<a href={executionURL(execution.executionId)}>{execution.executionId}</a>
}

<div>{desc} {details}</div>
Expand Down

0 comments on commit f1ee7fa

Please sign in to comment.