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
What happened?
If
.memodel is exported with an unknown to ME script at the root, this codeMate-Engine/Assets/MATE ENGINE - Scripts/AvatarHandlers/AvatarBigScreenToggleHandler.cs
Lines 36 to 41 in 2c5ea6b
GetComponents()->null->null.GetType()Will throw
NullReferenceExceptionevery frame, flooding the logs, impacting performance and disk lifeSteps to Reproduce
Excessive.
App Version
2.1.4
Store Edition
GitHub Edition
Confirmation