Fixing issue with agent download

Ace 9 years ago
parent 7affc1f443
commit 3156b92700

@ -162,8 +162,14 @@ public class ApisAppClient {
JSONObject object = jsonSubscriptions.getJSONObject(n);
String appName = object.getString("name");
String prodConsumerKey = object.getString("prodConsumerKey");
String prodConsumerSecret = object.getString("prodConsumerSecret");
String prodConsumerKey = null;
String prodConsumerSecret = null;
if(!object.get("prodConsumerKey").equals(null)) {
prodConsumerKey = object.getString("prodConsumerKey");
}
if(!object.get("prodConsumerSecret").equals(null)) {
prodConsumerSecret = object.getString("prodConsumerSecret");
}
subscriptionMap.put(appName, new String(Base64.encodeBase64(
(prodConsumerKey + ":" + prodConsumerSecret).getBytes())));
}

Loading…
Cancel
Save