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:
Patrick Linskey 2007-04-05 23:13:33 +00:00
parent 814637ca6c
commit 7f998f10f1
1 changed files with 1 additions and 1 deletions

View File

@ -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());