From 14dde760b07cec57c73802f246484add4acbfab1 Mon Sep 17 00:00:00 2001
From: BlossomiShymae <87099578+BlossomiShymae@users.noreply.github.com>
Date: Wed, 14 Aug 2024 03:46:11 -0500
Subject: [PATCH] Fix bug where /lol-account-verification failed to open
---
Needlework.Net.Desktop/Needlework.Net.Desktop.csproj | 4 ++--
Needlework.Net.Desktop/ViewModels/OperationViewModel.cs | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Needlework.Net.Desktop/Needlework.Net.Desktop.csproj b/Needlework.Net.Desktop/Needlework.Net.Desktop.csproj
index 0a49324..59c3cad 100644
--- a/Needlework.Net.Desktop/Needlework.Net.Desktop.csproj
+++ b/Needlework.Net.Desktop/Needlework.Net.Desktop.csproj
@@ -11,8 +11,8 @@
False
app.ico
NeedleworkDotNet
- 0.3.1.0
- 0.3.1.0
+ 0.3.2.0
+ 0.3.2.0
False
diff --git a/Needlework.Net.Desktop/ViewModels/OperationViewModel.cs b/Needlework.Net.Desktop/ViewModels/OperationViewModel.cs
index 02a3935..0434085 100644
--- a/Needlework.Net.Desktop/ViewModels/OperationViewModel.cs
+++ b/Needlework.Net.Desktop/ViewModels/OperationViewModel.cs
@@ -38,6 +38,7 @@ namespace Needlework.Net.Desktop.ViewModels
if (requestBody.Content.TryGetValue("application/json", out var media))
{
var schema = media.Schema;
+ if (schema == null) return null; // Because "PostLolAccountVerificationV1SendDeactivationPin" exists where the media body is empty...
return GetSchemaType(schema);
}
return null;