Skip to content

Commit 21cd1e5

Browse files
Fix miscellaneous null reference exceptions that occur in JellyForest when using a modified loginpanel setup
1 parent 5c62291 commit 21cd1e5

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Packages/Sequence-Unity/Sequence/SequenceSDK/EmbeddedWallet/SequenceLogin.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ private void CreateWallet(IValidator validator = null, IAuthenticator authentica
108108

109109
public void ResetSessionId()
110110
{
111+
if (_connectedWalletAddress != null) {
112+
return;
113+
}
111114
_sessionWallet = new EOAWallet();
112115
_sessionId = IntentDataOpenSession.CreateSessionId(_sessionWallet.GetAddress());
113116
_intentSender = new IntentSender(new HttpClient(WaaSWithAuthUrl), _sessionWallet, _sessionId, _waasProjectId, _waasVersion);

Packages/Sequence-Unity/Sequence/SequenceSDK/Relayer/PermissionedMinterTransactionQueuer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ private void HandleMintTokenFailed(string error)
2727

2828
private void OnDestroy()
2929
{
30-
_minter.OnMintTokenFailed -= HandleMintTokenFailed;
30+
if (_minter != null)
31+
_minter.OnMintTokenFailed -= HandleMintTokenFailed;
3132
}
3233

3334
public void Enqueue(PermissionedMintTransaction transaction, IMinter minter = null)

Packages/Sequence-Unity/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "xyz.0xsequence.waas-unity",
3-
"version": "3.17.4",
3+
"version": "3.17.5",
44
"displayName": "Sequence Embedded Wallet SDK",
55
"description": "A Unity SDK for the Sequence WaaS API",
66
"unity": "2021.3",

0 commit comments

Comments
 (0)