mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 15:52:54 +08:00
Fix two null refrences in OsuGame
This commit is contained in:
parent
d3995693a0
commit
8a01a22612
@ -333,7 +333,7 @@ namespace osu.Game
|
|||||||
/// <param name="link">The link to load.</param>
|
/// <param name="link">The link to load.</param>
|
||||||
public void HandleLink(LinkDetails link) => Schedule(() =>
|
public void HandleLink(LinkDetails link) => Schedule(() =>
|
||||||
{
|
{
|
||||||
string argString = link.Argument.ToString();
|
string argString = link.Argument.ToString() ?? string.Empty;
|
||||||
|
|
||||||
switch (link.Action)
|
switch (link.Action)
|
||||||
{
|
{
|
||||||
@ -1042,6 +1042,8 @@ namespace osu.Game
|
|||||||
{
|
{
|
||||||
if (entry.Level < LogLevel.Important || entry.Target > LoggingTarget.Database) return;
|
if (entry.Level < LogLevel.Important || entry.Target > LoggingTarget.Database) return;
|
||||||
|
|
||||||
|
Debug.Assert(entry.Target != null);
|
||||||
|
|
||||||
const int short_term_display_limit = 3;
|
const int short_term_display_limit = 3;
|
||||||
|
|
||||||
if (recentLogCount < short_term_display_limit)
|
if (recentLogCount < short_term_display_limit)
|
||||||
@ -1054,7 +1056,7 @@ namespace osu.Game
|
|||||||
}
|
}
|
||||||
else if (recentLogCount == short_term_display_limit)
|
else if (recentLogCount == short_term_display_limit)
|
||||||
{
|
{
|
||||||
string logFile = $@"{entry.Target.ToString().ToLowerInvariant()}.log";
|
string logFile = $@"{entry.Target.Value.ToString().ToLowerInvariant()}.log";
|
||||||
|
|
||||||
Schedule(() => Notifications.Post(new SimpleNotification
|
Schedule(() => Notifications.Post(new SimpleNotification
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user