The error is:
NullReferenceException: Object reference not set to an instance of an object
TMPro.TextMeshProUGUI.GenerateTextMesh () (at Library/PackageCache/com.unity.textmeshpro@2.1.4/Scripts/Runtime/TMPro_UGUI_Private.cs:3623)
TMPro.TextMeshProUGUI.GetTextInfo (System.String text) (at Library/PackageCache/com.unity.textmeshpro@2.1.4/Scripts/Runtime/TextMeshProUGUI.cs:568)
DisableScrollBar+<g__EnumerateLines|5_0>d.MoveNext () (at Assets/Scripts/DisableScrollBar.cs:39)
DisableScrollBar.Update () (at Assets/Scripts/DisableScrollBar.cs:46)
The error is: NullReferenceException: Object reference not set to an instance of an object TMPro.TextMeshProUGUI.GenerateTextMesh () (at Library/PackageCache/com.unity.textmeshpro@2.1.4/Scripts/Runtime/TMPro_UGUI_Private.cs:3623) TMPro.TextMeshProUGUI.GetTextInfo (System.String text) (at Library/PackageCache/com.unity.textmeshpro@2.1.4/Scripts/Runtime/TextMeshProUGUI.cs:568) DisableScrollBar+<g__EnumerateLines|5_0>d.MoveNext () (at Assets/Scripts/DisableScrollBar.cs:39)
DisableScrollBar.Update () (at Assets/Scripts/DisableScrollBar.cs:46)