chaverri opened a new issue, #2317: URL: https://github.com/apache/fory/issues/2317
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/fory/issues) and found no similar issues. ### Version 0.9.0, 0.10.0 ### Component(s) Java ### Minimal reproduce step This is happening to me when trying to deserialise a new added field but which type is of an unknown class , I'm getting the error exactly here: https://github.com/apache/fory/blob/0e5f649e56763cefa8fb8062d24cfbc730765d1f/java/fory-core/src/main/java/org/apache/fory/serializer/NonexistentClassSerializers.java#L196 should be easy to reproduce with a unit test. ### What did you expect to see? I expect to handle the unknown class as expected since I'm using: ` .withCompatibleMode(CompatibleMode.COMPATIBLE)` ### What did you see instead? I'm getting a NPE: ``` java.lang.NullPointerException: Cannot invoke "org.apache.fury.meta.ClassDef.getId()" because "classDef" is null at org.apache.fury.serializer.NonexistentClassSerializers$NonexistentClassSerializer.getClassFieldsInfo(NonexistentClassSerializers.java:154) at org.apache.fury.serializer.NonexistentClassSerializers$NonexistentClassSerializer.read(NonexistentClassSerializers.java:193) at org.apache.fury.Fury.readDataInternal(Fury.java:959) at org.apache.fury.Fury.readNonRef(Fury.java:910) at org.apache.fury.serializer.ObjectSerializer.readContainerFieldValue(ObjectSerializer.java:393) at org.apache.fury.serializer.MetaSharedSerializer.read(MetaSharedSerializer.java:185) at org.apache.fury.Fury.readDataInternal(Fury.java:959) at org.apache.fury.Fury.readRef(Fury.java:861) at org.apache.fury.Fury.deserialize(Fury.java:793) at org.apache.fury.Fury.deserialize(Fury.java:714) at org.apache.fury.ThreadLocalFury.deserialize(ThreadLocalFury.java:137) ``` ### Anything Else? _No response_ ### Are you willing to submit a PR? - [x] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
