C
C#15mo ago
Elmishh

✅ THIS ANNOYING NRE

this is the exception:
[GorillaPicks]System.NullReferenceException
at (wrapper managed-to-native) UnityEngine.GameObject.GetComponentFastPath(UnityEngine.GameObject,System.Type,intptr)
at UnityEngine.GameObject.GetComponent[T] () [0x00021] in <97fdf0a75ab94da9a7e5188c186e574d>:0
at GorillaPicks.Plugin.Update () [0x000fd] in <647a69aec8f64c929025e43f25533c0d>:0 at (wrapper managed-to-native) UnityEngine.GameObject.GetComponentFastPath(UnityEngine.GameObject,System.Type,intptr)
at UnityEngine.GameObject.GetComponent[T] () [0x00021] in <97fdf0a75ab94da9a7e5188c186e574d>:0
at GorillaPicks.Plugin.Update () [0x000fd] in <647a69aec8f64c929025e43f25533c0d>:0
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
[GorillaPicks]System.NullReferenceException
at (wrapper managed-to-native) UnityEngine.GameObject.GetComponentFastPath(UnityEngine.GameObject,System.Type,intptr)
at UnityEngine.GameObject.GetComponent[T] () [0x00021] in <97fdf0a75ab94da9a7e5188c186e574d>:0
at GorillaPicks.Plugin.Update () [0x000fd] in <647a69aec8f64c929025e43f25533c0d>:0 at (wrapper managed-to-native) UnityEngine.GameObject.GetComponentFastPath(UnityEngine.GameObject,System.Type,intptr)
at UnityEngine.GameObject.GetComponent[T] () [0x00021] in <97fdf0a75ab94da9a7e5188c186e574d>:0
at GorillaPicks.Plugin.Update () [0x000fd] in <647a69aec8f64c929025e43f25533c0d>:0
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
here is the code:
5 Replies
Elmishh
Elmishh15mo ago
i hate this NRE only thing stopping me from continuing to make my mod sooo... anyone else?
chef drone builder
GetComponent should not throw a nullReferenceException.
Elmishh
Elmishh15mo ago
thats not helpful something isnt right the mod doesnt work if i disable and enable it only in OnInitialized after win 10 it does like nothing
Elmishh
Elmishh15mo ago
heres the entire log
Elmishh
Elmishh15mo ago
i got more than 2 spheres its amazing it stopped throwing NREs and i dont even know why