Skip to content

Commit

Permalink
Improved error message for missing Java class in Deserializer
Browse files Browse the repository at this point in the history
  • Loading branch information
tzaeschke committed Jul 15, 2015
1 parent a4993cf commit 48c5563
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/org/zoodb/internal/DataDeSerializer.java
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,10 @@ private final Object hollowForOid(long oid, ZooClassDef clsDef) {
while (clsDef.getNextVersion() != null) {
clsDef = clsDef.getNextVersion();
}
if (clsDef.getJavaClass() == null) {
throw DBLogger.newUser("Class has not been fully evolved (" +
Util.oidToString(oid) + "): " + clsDef);
}
obj = createInstance(clsDef.getJavaClass());
prepareObject((ZooPC) obj, oid, true, clsDef);
}
Expand Down

0 comments on commit 48c5563

Please sign in to comment.