View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001668 | NoesisGUI | Unity3D | public | 2020-04-25 00:07 | 2020-05-07 01:33 |
Reporter | stonstad | Assigned To | jsantos | ||
Priority | normal | Severity | minor | Reproducibility | sometimes |
Status | resolved | Resolution | fixed | ||
Product Version | 3.0 | ||||
Target Version | 3.0.0 | Fixed in Version | 3.0.0 | ||
Summary | 0001668: NoesisPostProcessor.ImportXaml NullReferneceException After Font Deletion | ||||
Description | This code fails after a font is deleted: foreach (var dep in xaml.fonts) { if (File.Exists(dep.source)) { ImportFont(dep.source, false, false); } } NullReferenceException: Object reference not set to an instance of an object NoesisPostprocessor.ImportXaml (System.String filename, System.Boolean reimport, System.Boolean reload, System.Boolean& changed) (at Assets/NoesisGUI/Plugins/Editor/NoesisPostprocessor.cs:360) NoesisPostprocessor.ImportXaml (System.String filename, System.Boolean reimport, System.Boolean reload, System.Boolean& changed) (at Assets/NoesisGUI/Plugins/Editor/NoesisPostprocessor.cs:353) NoesisPostprocessor.ImportAssets (System.String[] assets, System.Boolean reload, NoesisPostprocessor+UpdateProgress d) (at Assets/NoesisGUI/Plugins/Editor/NoesisPostprocessor.cs:55) NoesisPostprocessor+<>c__DisplayClass4_1.<OnPostprocessAllAssets>b__0 () (at Assets/NoesisGUI/Plugins/Editor/NoesisPostprocessor.cs:110) System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0) System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <437ba245d8404784b9fbab9b439ac908>:0) System.Delegate.DynamicInvokeImpl (System.Object[] args) (at <437ba245d8404784b9fbab9b439ac908>:0) System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) (at <437ba245d8404784b9fbab9b439ac908>:0) System.Delegate.DynamicInvoke (System.Object[] args) (at <437ba245d8404784b9fbab9b439ac908>:0) UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at <bf679006b1b84db2a5a44842ef13dc36>:0) | ||||
Tags | No tags attached. | ||||
Platform | Any | ||||
Restarting Unity did not resolve the behavior. I added a null check to the code for 'dep'. Not sure why I am getting this after deleting a font. | |
Thanks for your great feedback! | |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-04-25 00:07 | stonstad | New Issue | |
2020-04-25 00:07 | stonstad | File Added: NullRef.PNG | |
2020-04-27 12:26 | jsantos | Assigned To | => jsantos |
2020-04-27 12:26 | jsantos | Status | new => assigned |
2020-04-27 12:26 | jsantos | Target Version | => 3.0.0 |
2020-04-27 12:26 | jsantos | Description Updated | View Revisions |
2020-04-27 16:45 | stonstad | Note Added: 0006283 | |
2020-05-07 01:33 | jsantos | Status | assigned => resolved |
2020-05-07 01:33 | jsantos | Resolution | open => fixed |
2020-05-07 01:33 | jsantos | Fixed in Version | => 3.0.0 |
2020-05-07 01:33 | jsantos | Note Added: 0006324 |