Skip to content
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

NRE on KT's OnDestroy #10

Open
Lisias opened this issue Sep 6, 2022 · 2 comments
Open

NRE on KT's OnDestroy #10

Lisias opened this issue Sep 6, 2022 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Lisias
Copy link

Lisias commented Sep 6, 2022

Just found this one on KSP 1.12.3 and a few (probably unrelated) add'ons:

[LOG 17:55:47.100] [KourageousTourists] DETAIL: scene: FLIGHT
[ERR 17:55:47.105] [KourageousTourists] ERROR: Got Exception while attempting to access loaded vessels at error:0

[EXC 17:55:47.107] NullReferenceException: Object reference not set to an instance of an object
        FlightGlobals.get_VesselsLoaded () (at <46478292153440df94e04a2a2ddd1062>:0)
        KourageousTourists.KourageousTouristsAddOn.OnDestroy () (at <a6ae0ea7e1eb47eda525b32fba580921>:0)
        UnityEngine.DebugLogHandler:LogException(Exception, Object)
        KSPe.Util.Log.UnityLogDecorator:UnityEngine.ILogHandler.LogException(Exception, Object)
        ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
        UnityEngine.Debug:LogException(Exception)
        KSPe.Util.Log.UnityLogger:logException(String, Exception)
        KSPe.Util.Log.Logger:error(Exception, String, Object[])
        KourageousTourists.Log:error(Exception, String, Object[])
        KourageousTourists.KourageousTouristsAddOn:OnDestroy()

The vessel had no cockpit or crew, it was an probe. I'm probably forgetting to check for this use case.

@Lisias Lisias self-assigned this Sep 6, 2022
@Lisias Lisias added this to the 0.6.0.1 milestone Sep 6, 2022
@Lisias Lisias added the bug Something isn't working label Sep 17, 2022
@Lisias
Copy link
Author

Lisias commented Sep 17, 2022

Didn't reproduced it on 1.4.3….

@Lisias
Copy link
Author

Lisias commented Sep 17, 2022

Didn't reproduced on 1.12.3 neither…

Perhaps some interaction with a 3rd party?

I'm keeping this opened just in case,

@Lisias Lisias removed this from the 0.6.0.1 milestone Sep 17, 2022
Lisias added a commit that referenced this issue Nov 27, 2022
@Lisias Lisias added this to the 0.6.0.2 milestone Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant