mirror of https://github.com/apache/openjpa.git
Null check.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525999 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
814637ca6c
commit
7f998f10f1
|
@ -2155,7 +2155,7 @@ public class DBDictionary
|
|||
*/
|
||||
protected String getForUpdateClause(JDBCFetchConfiguration fetch,
|
||||
boolean forUpdate) {
|
||||
if (fetch.getIsolationLevel() != -1)
|
||||
if (fetch != null && fetch.getIsolationLevel() != -1)
|
||||
throw new IllegalStateException(_loc.get(
|
||||
"isolation-level-config-not-supported", getClass().getName())
|
||||
.getMessage());
|
||||
|
|
Loading…
Reference in New Issue