-
Notifications
You must be signed in to change notification settings - Fork 47
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
ArgumentNullException when Deserializing Inherit Class with empty Migration #414
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
Thank you for reporting this @imperiobadgo. I am a little slammed today but should be able to look into this for you tomorrow. I will update you with any findings then. 👍 |
Alright @imperiobadgo I have managed to successfully reproduce this issue on my end. Note that this appears to occur when applying a migration to a base type. I was able to reproduce this with having both types in the same namespace. I am looking into this now but from the outset it looks like an ugly one so I am not sure if I will be able to fix it with time constraints per #383. In the meantime, it does appear if you configure the type directly that it does work as expected. I know that's a bit of a pain (if you have a lot of inherited types to configure) but it should serve as a workaround until this is fixed.
Please let me know if the above workaround gets you unblocked in the meantime. |
FWIW we are most definitely in "viewing code you wrote ~four years ago and WTF WERE YOU THINKING" territory now. 😂😂😂 😭😭😭 |
Good news @imperiobadgo... I have a possible fix for you. Please try the build out here: And let me know if that treats you any better. 🤞 |
Thank you so much for taking care of this problem. This serializer helps me to cover all kinds of special scenarios very elegantly, which otherwise would be very complicated to solve. And I am very grateful for your hard work. I've already found another workaround: If I serialize the "inherit" object inside a list with only one entry, it works just fine. |
Thank you very much, it throws no exception anymore. I am still testing if old saves can be migrated and loaded. |
Woohoo! Glad to hear. Please let me know if you encounter any further issues. I will slate the fix release for next Tuesday and update here when available on Nuget. Please use the preview builds until then. 👍 |
It works just perfect. Older save can still be migrated and desirialized! |
Alright! v3.2.3 is now available on NuGet: https://www.nuget.org/packages/ExtendedXmlSerializer/ Thank you for improving the quality of ExtendedXmlSerializer. Please let us know if you have any further issues and we will look into them for you. 👍 Closing for now.
|
I've found an Issue in my Project with deserializing via a Migration. I've created the following Example to reproduce the behaviour:
The Key-Elements are the inherit class inside the container object and the empty migration which changes something. If you remove the namespace "AnotherNameSpace", another exception appears. The whole thing has something to do with namespaces. In the following the stacktrace:
The text was updated successfully, but these errors were encountered: