* Check if _prototype is set in type.properties before appending proto clauses to queries.

This commit is contained in:
hns 2006-08-09 19:36:51 +00:00
parent 9a6757f75b
commit 33d59c0c59

View file

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