From 33d59c0c596ca0a4581640a1b0c700316dd6c92e Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 9 Aug 2006 19:36:51 +0000 Subject: [PATCH] * Check if _prototype is set in type.properties before appending proto clauses to queries. --- src/helma/objectmodel/db/Relation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helma/objectmodel/db/Relation.java b/src/helma/objectmodel/db/Relation.java index 20571212..361bd48b 100644 --- a/src/helma/objectmodel/db/Relation.java +++ b/src/helma/objectmodel/db/Relation.java @@ -946,7 +946,7 @@ public final class Relation { // extensions should never be null for extension- and // extended prototypes. nevertheless we check it here - if (extensions != null) { + if (extensions != null && protoField != null) { q.append(prefix); otherType.appendCondition(q, protoField, extensions); prefix = " AND ";