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
This commit is contained in:
A. Abram White 2006-07-31 18:50:19 +00:00
parent f279a6790b
commit 696cbee04b
1 changed files with 2 additions and 0 deletions

View File

@ -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",