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

Add a default registration if missing Class structure when re… #686

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -135,9 +135,14 @@ public T read (Kryo kryo, Input input, Class<? extends T> type) {
} catch (KryoException ex) {
String message = "Unable to read unknown data (unknown type). (" + getType().getName() + "#" + cachedField + ")";
if (!chunked) throw new KryoException(message, ex);
if (DEBUG) debug("kryo", message, ex);
inputChunked.nextChunk();
continue;
try {
maxisvest marked this conversation as resolved.
Show resolved Hide resolved
//try to give a default registration
registration = kryo.getRegistration(Object.class);
} catch (Exception e) {
if(DEBUG) trace("Unable to get default registration: " + e.getMessage());
inputChunked.nextChunk();
continue;
}
}
if (registration == null) {
if (chunked) inputChunked.nextChunk();
Expand Down