code: public static <T> T deserialize(byte[] b, Class<T> clazz) {
  		try (
  			Pool<Kryo, RuntimeException>.Entry entry = kryoPool.borrow();
  			Input input = new Input(b);
  		) {
  			T t = entry.getObject().readObject(input, clazz);
  			entry.setValid(true);
  			return t;
  		} catch (KryoException e) {
  			Log.w(e.getMessage());
  			return null;
  		}
  	}
docs: Be sure to do null pointer check on return value !!!