From d3a1f055afba1a8f22e334cf63b684ebf8f278b0 Mon Sep 17 00:00:00 2001 From: oneRain Date: Thu, 29 Apr 2021 15:57:25 +0800 Subject: [PATCH] fix: link auth bug. --- Storage/Storage/Public/LCUser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Storage/Storage/Public/LCUser.cs b/Storage/Storage/Public/LCUser.cs index c1883b9..ef0957e 100644 --- a/Storage/Storage/Public/LCUser.cs +++ b/Storage/Storage/Public/LCUser.cs @@ -550,7 +550,7 @@ namespace LeanCloud.Storage { } async Task LinkWithAuthData(string authType, Dictionary data) { - Dictionary oriAuthData = new Dictionary(AuthData); + Dictionary oriAuthData = new Dictionary(AuthData ?? new Dictionary()); AuthData = new Dictionary { { authType, data } };