From 696cbee04b6d5d27e1473f3feac5ba227e37987c Mon Sep 17 00:00:00 2001 From: "A. Abram White" Date: Mon, 31 Jul 2006 18:50:19 +0000 Subject: [PATCH] Always pass non-null fetch conf to StoreManager. git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@427206 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/openjpa/kernel/StateManagerImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java index 52c18858a..dd4e348e8 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java @@ -2718,6 +2718,8 @@ public class StateManagerImpl // if any fields given, load them int len = (fields == null) ? 0 : fields.length(); if (len > 0) { + if (fetch == null) + fetch = _broker.getFetchConfiguration(); if (!_broker.getStoreManager().load(this, fields, fetch, lockLevel, sdata)) { throw new ObjectNotFoundException(_loc.get("del-instance",