SpotifyHttpManager: Fix Cache Logging
Fixes
@@ -230,6 +230,8 @@ public class SpotifyHttpManager implements IHttpManager {
try {
CacheResponseStatus responseStatus = context.getCacheResponseStatus();
+
+ if (responseStatus != null) {
switch (responseStatus) {
case CACHE_HIT:
SpotifyApi.LOGGER.log(
@@ -252,6 +254,7 @@ public class SpotifyHttpManager implements IHttpManager {
"The response was generated from the cache after validating the entry with the origin server");
break;
}
+ }
} catch (Exception e) {
SpotifyApi.LOGGER.log(Level.SEVERE, e.getMessage());
}
