use the same typo in both saving disco and reading disco

This commit is contained in:
Daniel Gultsch 2016-05-15 12:35:51 +02:00
parent cf5ca27a06
commit 6f1a4494eb
1 changed files with 2 additions and 1 deletions

View File

@ -53,6 +53,7 @@ public class ServiceDiscoveryResult {
} }
public Identity(final JSONObject o) { public Identity(final JSONObject o) {
this( this(
o.optString("category", null), o.optString("category", null),
o.optString("type", null), o.optString("type", null),
@ -145,7 +146,7 @@ public class ServiceDiscoveryResult {
this.hash = hash; this.hash = hash;
this.ver = ver; this.ver = ver;
JSONArray identities = o.optJSONArray("identities"); JSONArray identities = o.optJSONArray("identites");
if (identities != null) { if (identities != null) {
for (int i = 0; i < identities.length(); i++) { for (int i = 0; i < identities.length(); i++) {
this.identities.add(new Identity(identities.getJSONObject(i))); this.identities.add(new Identity(identities.getJSONObject(i)));