Skip to content

[BUG] Missing script on model results in log flooding #535

@PAMEH-2045

Description

@PAMEH-2045

What happened?

If .me model is exported with an unknown to ME script at the root, this code

var behaviours = GetComponents<Behaviour>();
foreach (var b in behaviours)
{
if (b == this || b == bigScreenHandler) continue;
bool shouldDisable = settings.Exists(s => s.componentTypeName == b.GetType().FullName && s.disableInBigScreen);

GetComponents() -> null -> null.GetType()

Will throw NullReferenceException every frame, flooding the logs, impacting performance and disk life

Steps to Reproduce

Excessive.

App Version

2.1.4

Store Edition

GitHub Edition

Confirmation

  • I confirm this report includes only one bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions