Skip to content
This repository was archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
Merge pull request #80 from YousicianGit/fix/nre
Browse files Browse the repository at this point in the history
Fix for NullReferenceException when TextEndEdit is sent
  • Loading branch information
Nezz authored Oct 7, 2020
2 parents 35b3d5c + 12fbd87 commit 4647dae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions release/NativeEditPlugin/scripts/NativeEditBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,10 @@ private IEnumerator HandlePluginMessageOnNextFrame(JsonObject jsonMsg)

protected virtual void HandlePluginMessage(JsonObject jsonMsg)
{
// By the time this is called the component might be destroyed
if (this == null)
return;

string msg = jsonMsg.GetString("msg");
if (msg.Equals(MSG_TEXT_BEGIN_EDIT))
{
Expand Down

0 comments on commit 4647dae

Please sign in to comment.