An ad hoc judge can be appointed when there is a lack of quorum of permanent judges to hold or continue a Supreme Court session.