From 2fa5556c0daf13cb63b037492e74ad4051aa671c Mon Sep 17 00:00:00 2001 From: "Richard G. Curtis" Date: Thu, 8 Jul 2010 14:06:08 +0000 Subject: [PATCH] OPENJPA-1707: Fix NPE coming from PCRegistry. git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@961774 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/openjpa/enhance/PCEnhancer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java b/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java index 2048713c5..090776747 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java @@ -4746,7 +4746,7 @@ public class PCEnhancer { if (cls == null || log == null) { return false; } - PersistenceCapable pc = PCRegistry.newInstance(cls, null, true); + PersistenceCapable pc = PCRegistry.newInstance(cls, null, false); if (pc == null) { return false; }