mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: NullRef when installing normal plugins
This commit is contained in:
parent
5a9f45c5bb
commit
770363e2d2
1 changed files with 6 additions and 1 deletions
|
|
@ -97,7 +97,12 @@ namespace Dalamud.Plugin
|
|||
|
||||
using var client = new WebClient();
|
||||
|
||||
var doTestingDownload = fromTesting && Version.Parse(definition.TestingAssemblyVersion) > Version.Parse(definition.AssemblyVersion) || fromTesting && definition.IsTestingExclusive;
|
||||
var doTestingDownload = false;
|
||||
if ((Version.TryParse(definition.TestingAssemblyVersion, out var testingAssemblyVer) || definition.IsTestingExclusive)
|
||||
&& fromTesting) {
|
||||
doTestingDownload = testingAssemblyVer > Version.Parse(definition.AssemblyVersion) || definition.IsTestingExclusive;
|
||||
}
|
||||
|
||||
var url = string.Format(PluginFunctionBaseUrl, definition.InternalName, isUpdate, doTestingDownload);
|
||||
|
||||
Log.Information("Downloading plugin to {0} from {1} doTestingDownload:{2} isTestingExclusive:{3}", path, url, doTestingDownload, definition.IsTestingExclusive);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue