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:
Donald Woods 2010-06-16 20:59:58 +00:00
parent 8084af124c
commit f82b866318

View File

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