Hi
I'm getting an exception when the scene start in Xcode. The scene runs fine in the editor and the 2 objects following a spline all
work fine. but as soon as I try and run on IOS device it crashes with this error:
NullReferenceException: A null value was found where an object instance was required.
at FluffyUnderware.DevTools.UnityEventEx`1[T0].HasListeners () [0x00000] in <filename unknown>:0
at FluffyUnderware.Curvy.Controllers.SplineController.BindEvents () [0x00000] in <filename unknown>:0
(Filename: currently not available on il2cpp Line: -1)
NullReferenceException: A null value was found where an object instance was required.
at FluffyUnderware.DevTools.UnityEventEx`1[T0].HasListeners () [0x00000] in <filename unknown>:0
at FluffyUnderware.Curvy.Controllers.SplineController.BindEvents () [0x00000] in <filename unknown>:0
UnityEngine.UnhandledExceptionHandlerrintException(String, Exception)
UnityEngine.UnhandledExceptionHandler:HandleUnhandledException(Object, UnhandledExceptionEventArgs)
(Filename: currently not available on il2cpp Line: -1)
The crash is in your HasListeners function, when I comment it out the spline follower it all works fine.
public bool HasListeners()
{
#if false
if (mCallsCount == null)
{
var fi = typeof(UnityEventBase).FieldByName("m_Calls", false, true);
if (fi != null)
{
mCallerList = fi.GetValue(this);
if (mCallerList != null)
mCallsCount = mCallerList.GetType().PropertyByName("Count").GetGetMethod();
}
}
if (mCount == -1)
{
if (mCallerList != null && mCallsCount != null)
mCount = (int)mCallsCount.Invoke(mCallerList, null); //.GetValue(mCallerList, null);
mCount += GetPersistentEventCount();
}
return (mCount > 0);
#endif
return (mCount > 0);
}
Any ideas?
I'm getting an exception when the scene start in Xcode. The scene runs fine in the editor and the 2 objects following a spline all
work fine. but as soon as I try and run on IOS device it crashes with this error:
NullReferenceException: A null value was found where an object instance was required.
at FluffyUnderware.DevTools.UnityEventEx`1[T0].HasListeners () [0x00000] in <filename unknown>:0
at FluffyUnderware.Curvy.Controllers.SplineController.BindEvents () [0x00000] in <filename unknown>:0
(Filename: currently not available on il2cpp Line: -1)
NullReferenceException: A null value was found where an object instance was required.
at FluffyUnderware.DevTools.UnityEventEx`1[T0].HasListeners () [0x00000] in <filename unknown>:0
at FluffyUnderware.Curvy.Controllers.SplineController.BindEvents () [0x00000] in <filename unknown>:0
UnityEngine.UnhandledExceptionHandlerrintException(String, Exception)
UnityEngine.UnhandledExceptionHandler:HandleUnhandledException(Object, UnhandledExceptionEventArgs)
(Filename: currently not available on il2cpp Line: -1)
The crash is in your HasListeners function, when I comment it out the spline follower it all works fine.
public bool HasListeners()
{
#if false
if (mCallsCount == null)
{
var fi = typeof(UnityEventBase).FieldByName("m_Calls", false, true);
if (fi != null)
{
mCallerList = fi.GetValue(this);
if (mCallerList != null)
mCallsCount = mCallerList.GetType().PropertyByName("Count").GetGetMethod();
}
}
if (mCount == -1)
{
if (mCallerList != null && mCallsCount != null)
mCount = (int)mCallsCount.Invoke(mCallerList, null); //.GetValue(mCallerList, null);
mCount += GetPersistentEventCount();
}
return (mCount > 0);
#endif
return (mCount > 0);
}
Any ideas?