-
-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Null reference if viewing a gameobject with null script #161
Comments
I ran into a similar issue when I accidentally added a second ScriptableObject subclass to a file that already had one. |
Confirmed also |
dbrizov
added a commit
that referenced
this issue
Aug 2, 2020
…jects with deleted scripts that use naughty attributes.
Fixed in 842f290 |
github-actions bot
pushed a commit
that referenced
this issue
Aug 21, 2020
…jects with deleted scripts that use naughty attributes.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NullReferenceException: Object reference not set to an instance of an object NaughtyAttributes.Editor.ReflectionUtility+<GetAllFields>d__0.MoveNext () (at Assets/Decay.Utilities/NaughtyAttributes/Editor/Utility/ReflectionUtility.cs:12) System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable
1[T] source, System.Boolean& found) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable
1[T] source) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0) NaughtyAttributes.Editor.ReflectionUtility.GetField (System.Object target, System.String fieldName) (at Assets/Decay.Utilities/NaughtyAttributes/Editor/Utility/ReflectionUtility.cs:71) NaughtyAttributes.Editor.PropertyUtility.GetAttributes[T] (UnityEditor.SerializedProperty property) (at Assets/Decay.Utilities/NaughtyAttributes/Editor/Utility/PropertyUtility.cs:20) NaughtyAttributes.Editor.PropertyUtility.GetAttribute[T] (UnityEditor.SerializedProperty property) (at Assets/Decay.Utilities/NaughtyAttributes/Editor/Utility/PropertyUtility.cs:14) NaughtyAttributes.Editor.NaughtyInspector+<>c.<OnInspectorGUI>b__6_0 (UnityEditor.SerializedProperty p) (at Assets/Decay.Utilities/NaughtyAttributes/Editor/NaughtyInspector.cs:39) System.Linq.Enumerable.Any[TSource] (System.Collections.Generic.IEnumerable
1[T] source, System.Func2[T,TResult] predicate) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0) NaughtyAttributes.Editor.NaughtyInspector.OnInspectorGUI () (at Assets/Decay.Utilities/NaughtyAttributes/Editor/NaughtyInspector.cs:39) UnityEditor.UIElements.InspectorElement+<>c__DisplayClass55_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <90d4bcb003fb405fb09241aed2f178aa>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
How to reproduce:
The text was updated successfully, but these errors were encountered: