* Set parent on group nodes for transient parents. Fixes NullPointerException
in Relation.setConstraints().
This commit is contained in:
parent
ae3c331c7d
commit
44c0745954
1 changed files with 7 additions and 3 deletions
|
@ -1241,9 +1241,13 @@ public final class Node implements INode, Serializable {
|
||||||
boolean relational = groupbyMapping.getSubnodeMapping().isRelational();
|
boolean relational = groupbyMapping.getSubnodeMapping().isRelational();
|
||||||
|
|
||||||
if (relational || create) {
|
if (relational || create) {
|
||||||
Node node = relational && persistent ?
|
Node node;
|
||||||
new Node(this, sid, nmgr, null) :
|
if (relational && persistent) {
|
||||||
new Node(sid, null, nmgr);
|
node = new Node(this, sid, nmgr, null);
|
||||||
|
} else {
|
||||||
|
node = new Node(sid, null, nmgr);
|
||||||
|
node.setParent(this);
|
||||||
|
}
|
||||||
|
|
||||||
// set "groupname" property to value of groupby field
|
// set "groupname" property to value of groupby field
|
||||||
node.setString("groupname", sid);
|
node.setString("groupname", sid);
|
||||||
|
|
Loading…
Add table
Reference in a new issue