Skip to content

Commit

Permalink
fixed bug when sandbox endpoint not set
Browse files Browse the repository at this point in the history
  • Loading branch information
ChuckJonas authored Nov 15, 2018
1 parent d7b33b0 commit b78759e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/classes/BaseHttpClient.cls
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public abstract class BaseHttpClient {
public String baseEndpoint{
get{
baseEndpoint = baseProductionEndpoint;
if(isSandbox){
if(baseSandboxEndpoint != null && isSandbox){
baseEndpoint = baseSandboxEndpoint;
}
return baseEndpoint;
Expand Down Expand Up @@ -108,4 +108,4 @@ public abstract class BaseHttpClient {
this.setMessage('HttpRequest Error! Status Code: ' + resp.getStatusCode() + ' Message: ' + resp.getStatus());
}
}
}
}

0 comments on commit b78759e

Please sign in to comment.