Skip to content

Commit 5cb62a6

Browse files
avinash-newrelicswatijha23
authored andcommitted
fix: revert use of getOrDefault
1 parent 0885a1a commit 5cb62a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

NewRelicVideoCore/src/main/java/com/newrelic/videoagent/core/harvest/OptimizedHttpClient.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ public OptimizedHttpClient(NRVideoConfiguration configuration, android.content.C
6565
// Otherwise, auto-detect from region
6666
String region = configuration.getRegion();
6767
region = (region != null) ? region.toUpperCase() : "US";
68-
this.endpointUrl = REGIONAL_ENDPOINTS.getOrDefault(region, REGIONAL_ENDPOINTS.get("DEFAULT"));
68+
String endpoint = REGIONAL_ENDPOINTS.get(region);
69+
this.endpointUrl = (endpoint != null) ? endpoint : REGIONAL_ENDPOINTS.get("DEFAULT");
6970
}
7071

7172
if (configuration.isMemoryOptimized()) {

0 commit comments

Comments
 (0)