fix bug in getLastProject for non-site executions

This commit is contained in:
Jeremy Long
2016-03-06 17:28:40 -05:00
parent a19dd7687e
commit e51031c62a
3 changed files with 21 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ public class ExpectedOjectInputStream extends ObjectInputStream {
@Override
protected Class<?> resolveClass(ObjectStreamClass desc) throws IOException, ClassNotFoundException {
if (!this.expected.contains(desc.getName())) {
throw new InvalidClassException("Unexpected deserialization", desc.getName());
throw new InvalidClassException("Unexpected deserialization ", desc.getName());
}
return super.resolveClass(desc);
}