mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-02 19:27:57 +08:00
NPE occurs inside of EntityBuildFactory when retrieving property for invalid metaclass. #PL-2208
This commit is contained in:
parent
dccb0fc85b
commit
5cbad8ebab
@ -36,6 +36,8 @@ public class EntityFactory extends TypeFactory {
|
||||
if (StringUtils.isBlank(string))
|
||||
return null;
|
||||
EntityLoadInfo info = EntityLoadInfo.parse(string);
|
||||
if (info == null)
|
||||
throw new IllegalArgumentException("Invalid entity info: " + string);
|
||||
|
||||
Entity entity;
|
||||
Transaction tx = persistence.createTransaction();
|
||||
|
Loading…
Reference in New Issue
Block a user