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 ";