From 7f998f10f13ea84a66b5da405f0f11a990dca0c8 Mon Sep 17 00:00:00 2001 From: Patrick Linskey Date: Thu, 5 Apr 2007 23:13:33 +0000 Subject: [PATCH] Null check. git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525999 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java index 515d6bc43..f7e38de92 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java @@ -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());