NPE occurs inside of EntityBuildFactory when retrieving property for invalid metaclass. #PL-2208

This commit is contained in:
Konstantin Krivopustov 2013-06-13 07:37:02 +00:00
parent dccb0fc85b
commit 5cbad8ebab

View File

@ -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();