提交 5476de2d authored 作者: Thomas Mueller's avatar Thomas Mueller

A NullPointerException could occur in TableView.isDeterministic for invalid views.

上级 1f1691b6
...@@ -19,7 +19,8 @@ Change Log ...@@ -19,7 +19,8 @@ Change Log
<h1>Change Log</h1> <h1>Change Log</h1>
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul><li>Issue 180: when deserializing objects, the context class loader is used <ul><li>A NullPointerException could occur in TableView.isDeterministic for invalid views.
</li><li>Issue 180: when deserializing objects, the context class loader is used
instead of the default class loader if the system property "h2.useThreadContextClassLoader" is set. instead of the default class loader if the system property "h2.useThreadContextClassLoader" is set.
Thanks a lot to Noah Fontes for the patch! Thanks a lot to Noah Fontes for the patch!
</li><li>When using the exclusive mode, LOB operations could cause the thread to freeze. </li><li>When using the exclusive mode, LOB operations could cause the thread to freeze.
......
...@@ -443,7 +443,7 @@ public class TableView extends Table { ...@@ -443,7 +443,7 @@ public class TableView extends Table {
} }
public boolean isDeterministic() { public boolean isDeterministic() {
if (recursive) { if (recursive || viewQuery == null) {
return false; return false;
} }
return viewQuery.isEverything(ExpressionVisitor.DETERMINISTIC_VISITOR); return viewQuery.isEverything(ExpressionVisitor.DETERMINISTIC_VISITOR);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论