From 4529071cf4a0d04b685a5b947c4d7c169733974a Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 6 Nov 2002 10:06:05 +0000 Subject: [PATCH] *** empty log message *** --- src/helma/objectmodel/TransientNode.java | 3 +++ src/helma/objectmodel/db/Node.java | 9 +++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/helma/objectmodel/TransientNode.java b/src/helma/objectmodel/TransientNode.java index 43e90e4d..5a1fe006 100644 --- a/src/helma/objectmodel/TransientNode.java +++ b/src/helma/objectmodel/TransientNode.java @@ -137,6 +137,9 @@ public class TransientNode implements INode, Serializable { } public String getPrototype () { + // if prototype is null, it's a vanilla HopObject. + if (prototype == null) + return "hopobject"; return prototype; } diff --git a/src/helma/objectmodel/db/Node.java b/src/helma/objectmodel/db/Node.java index 50e16cda..e9289771 100644 --- a/src/helma/objectmodel/db/Node.java +++ b/src/helma/objectmodel/db/Node.java @@ -545,12 +545,9 @@ public final class Node implements INode, Serializable { public String getPrototype () { - /* if (prototype == null && propMap != null) { - // retrieve prototype name from properties - Property pp = (Property) propMap.get ("prototype"); - if (pp != null) - prototype = pp.getStringValue (); - } */ + // if prototype is null, it's a vanilla HopObject. + if (prototype == null) + return "hopobject"; return prototype; }