mirror of
https://github.com/apache/openjpa.git
synced 2025-02-21 01:15:30 +00:00
OPENJPA-1700 FindBugs - Null pointer dereference; changeRow was not being set before being used.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@955381 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8084af124c
commit
f82b866318
@ -320,7 +320,7 @@ public class RelationRelationMapTableFieldStrategy
|
||||
if (canChange && !change.isEmpty()) {
|
||||
Row changeRow = null;
|
||||
if (!field.isUni1ToMFK()) {
|
||||
rm.getSecondaryRow(field.getTable(),
|
||||
changeRow = rm.getSecondaryRow(field.getTable(),
|
||||
Row.ACTION_UPDATE);
|
||||
changeRow.whereForeignKey(field.getJoinForeignKey(), sm);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user