Is my understanding of the situation correct?

1. John is the father of your sister.
2. John is seeking custody of your sister.
3. The judge who will determine whether he receives custody is John's sister's boyfriend.

If that is the case, the judge has a clear conflict of interest, and any competent attorney will be able to change legal venue or invalidate his ruling.