mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 09:42:55 +08:00
Ignore parse errors rather than dying
This commit is contained in:
parent
3db6913a9c
commit
1a92263652
@ -1,7 +1,6 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
@ -116,7 +115,8 @@ namespace osu.Game.Tournament
|
|||||||
var src = ladder.Matches.FirstOrDefault(p => p.ID == pair.SourceID);
|
var src = ladder.Matches.FirstOrDefault(p => p.ID == pair.SourceID);
|
||||||
var dest = ladder.Matches.FirstOrDefault(p => p.ID == pair.TargetID);
|
var dest = ladder.Matches.FirstOrDefault(p => p.ID == pair.TargetID);
|
||||||
|
|
||||||
if (src == null) throw new InvalidOperationException();
|
if (src == null)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (dest != null)
|
if (dest != null)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user