If you're just going to "assert(joinTree.m_whereExpr == null);" and set joinTree.m_joinExpr later anyway, you might as well keep things simple and just use joinTree.m_joinExpr instead of getSimpleFilterExpression().