diff --git a/src/Tiebreaks.php b/src/Tiebreaks.php index 1008a08..d862e1a 100644 --- a/src/Tiebreaks.php +++ b/src/Tiebreaks.php @@ -215,8 +215,9 @@ abstract class Tiebreaks extends Tournament array_slice($intpairings, 0 - $cuthighest); foreach ($intpairings as $intkey => $intpairing) { - $tiebreak += $intpairing->getOpponent()->getPoints(); - } + if(!is_null($intpairing->getOpponent())){ + $tiebreak += $intpairing->getOpponent()->getPoints(); + }} return $tiebreak; }