From 7197ea40788b004d5212b79a3166f394c2729c97 Mon Sep 17 00:00:00 2001 From: "Nelson R. Perez" Date: Thu, 14 Jun 2018 22:16:34 -0500 Subject: [PATCH] Fixed a big problem that was causing some random responses not to be de-serialized due to a mistake in the removal of entries in the request class map --- .../java/cy/agorise/graphenej/api/android/NetworkService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphenej/src/main/java/cy/agorise/graphenej/api/android/NetworkService.java b/graphenej/src/main/java/cy/agorise/graphenej/api/android/NetworkService.java index b08256f..e570af7 100644 --- a/graphenej/src/main/java/cy/agorise/graphenej/api/android/NetworkService.java +++ b/graphenej/src/main/java/cy/agorise/graphenej/api/android/NetworkService.java @@ -272,7 +272,7 @@ public class NetworkService extends Service { Class requestClass = mRequestClassMap.get(response.id); if(requestClass != null){ // Removing the class entry in the map - mRequestClassMap.remove(mCurrentId); + mRequestClassMap.remove(response.id); // Obtaining the response payload class Class responsePayloadClass = mDeserializationMap.getReceivedClass(requestClass);