Skip to content

Commit

Permalink
Make getRelationWithName() more general
Browse files Browse the repository at this point in the history
Signed-off-by: Tianrui Zheng <tianrui.zheng@huawei.com>
  • Loading branch information
Tianrui Zheng committed Dec 5, 2024
1 parent 8a10288 commit d01f7dc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ private Relation getRelationWithName(String name) {
// First check if the original definition is asked.
if (name.endsWith("#0")) {
String originalName = name.substring(0, name.lastIndexOf("#"));
return wmm.getRelation(originalName);
Relation r = wmm.getRelation(originalName);
if (r!=null) { return r; }
}

int maxId = -1;
Expand Down

0 comments on commit d01f7dc

Please sign in to comment.