Skip to content

Commit

Permalink
MONDRIAN: fixed ArrayOutOfBoundsException in cousin()
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//open/mondrian/": change = 1196]
  • Loading branch information
Andreas Voss committed Jan 23, 2004
1 parent dfa5d3e commit 6d0037b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/mondrian/olap/fun/BuiltinFunTable.java
Expand Up @@ -947,7 +947,7 @@ private Member cousin2(SchemaReader schemaReader, Member member1, Member member2
}
int ordinal = Util.getMemberOrdinalInParent(schemaReader, member1);
Member[] cousins = schemaReader.getMemberChildren(uncle);
if (cousins.length < ordinal) {
if (cousins.length <= ordinal) {
return null;
}
return cousins[ordinal];
Expand Down

0 comments on commit 6d0037b

Please sign in to comment.