mirror of https://github.com/apache/openjpa.git
OPENJPA-2284: Save NPE while parsing cascade - back ported to 2.0.x Pinaki's commit to trunk.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@1419659 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7f89076981
commit
3958529f1f
|
@ -1229,9 +1229,7 @@ public class XMLPersistenceMetaDataParser
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ValueMetaData vmd = fmd;
|
ValueMetaData vmd = fmd;
|
||||||
switch (_strategy) {
|
if (_strategy == ONE_MANY || _strategy == MANY_MANY) {
|
||||||
case ONE_MANY:
|
|
||||||
case MANY_MANY:
|
|
||||||
vmd = fmd.getElement();
|
vmd = fmd.getElement();
|
||||||
}
|
}
|
||||||
for (CascadeType cascade : cascades) {
|
for (CascadeType cascade : cascades) {
|
||||||
|
|
Loading…
Reference in New Issue