From 4c94cba09135f92ba19fd642015af55a55707da2 Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 8 Jul 2003 15:47:12 +0000 Subject: [PATCH] Fix bug 256: Replicated Mountpoint has null NodeManager. --- src/helma/objectmodel/db/Node.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/helma/objectmodel/db/Node.java b/src/helma/objectmodel/db/Node.java index c095c3bf..de9e9c34 100644 --- a/src/helma/objectmodel/db/Node.java +++ b/src/helma/objectmodel/db/Node.java @@ -1702,9 +1702,13 @@ public final class Node implements INode, Serializable { } else if (propRel != null && propRel.isVirtual()) { // prop was found and explicit property relation is collection - // this is a collection node containing objects stored in the embedded db - INode pn = prop.getNodeValue(); + Node pn = (Node) prop.getNodeValue(); if (pn != null) { + // do set DbMapping for embedded db collection nodes pn.setDbMapping(propRel.getVirtualMapping()); + // also set node manager in case this is a mountpoint node + // that came in through replication + pn.nmgr = nmgr; } } }