mirror of https://github.com/apache/openjpa.git
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:
parent
e466dee5f9
commit
dd1ea27032
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue