Check for null session values
@@ -74,6 +74,7 @@ public class DatastoreSessionManager extends AbstractSessionManager {
session._invalid = (boolean)entity.getProperty("_invalid");
Blob blob = (Blob)entity.getProperty("_values");
+ if (blob != null) {
try {
ByteArrayInputStream bais = new ByteArrayInputStream(blob.getBytes());
ObjectInputStream ois = new ObjectInputStream(bais);
@@ -83,6 +84,7 @@ public class DatastoreSessionManager extends AbstractSessionManager {
} catch (ClassNotFoundException | IOException error) {
throw new RuntimeException(error);
}
+ }
return session;
}
