OPENJPA240 added missing null check

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563192 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Marc Prud'hommeaux 2007-08-06 17:04:29 +00:00
parent e466dee5f9
commit dd1ea27032
1 changed files with 2 additions and 1 deletions

View File

@ -169,7 +169,8 @@ public class AnnotationPersistenceXMLMetaDataParser {
*/
private XMLMetaData parseXMLClassAnnotations() {
// check immediately whether the class has JAXB XML annotations
if (_cls == null || !_cls.isAnnotationPresent(xmlTypeClass))
if (_cls == null || xmlTypeClass == null
|| !_cls.isAnnotationPresent(xmlTypeClass))
return null;
// find / create metadata