From 40629ed7b9bd036f45934b614799750a3fd5e908 Mon Sep 17 00:00:00 2001 From: Redkale <8730487+redkale@users.noreply.github.com> Date: Mon, 28 Oct 2019 13:14:38 +0800 Subject: [PATCH] --- src/org/redkale/source/EntityInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/redkale/source/EntityInfo.java b/src/org/redkale/source/EntityInfo.java index 447be4073..b427f4046 100644 --- a/src/org/redkale/source/EntityInfo.java +++ b/src/org/redkale/source/EntityInfo.java @@ -239,7 +239,7 @@ public final class EntityInfo { } //--------------------------------------------- Table t = type.getAnnotation(Table.class); - if (type.getAnnotation(VirtualEntity.class) != null || "memory".equalsIgnoreCase(source.getType())) { + if (type.getAnnotation(VirtualEntity.class) != null || (source == null || "memory".equalsIgnoreCase(source.getType()))) { this.table = null; BiFunction loader = null; try {