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);