-
Notifications
You must be signed in to change notification settings - Fork 248
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
NullPointerException when using FSTObjectInputNoShared #159
Comments
I am seeing the same problem with using an URI (w/o collection). A testcase is provided in #168. I didn't find any obvious yet in the code but I will keep on looking. It fails with shared and unshared references. |
I think the problem is that on deserializing the default "readObject" method isn' being called (as opposed to the "writeObject"). Thus in the URI class the required fields aren't being set (see the test case which has an internal class similar to what URI/URL are doing) |
why not use default output stream ? the performance difference is kind of neglectable, in many cases its even faster ? |
@RuedigerMoeller, I am in fact using the default |
thankx :) unshared mode is kind of untested currently (it worked sometime ago ..) |
The following code produces a
NullPointerException
in unshared mode:The stack trace is the following:
The issue has been around since fast-serialization 2.12, the code above works with 2.10 without the
NullPointerException
. The current version is 2.48.The text was updated successfully, but these errors were encountered: