Fix exception (#3158)

pull/3166/head
justindg 2 years ago committed by GitHub
parent 2dd3f2380a
commit 12439b8bc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      app/src/main/java/com/alphawallet/app/service/OpenSeaService.java

@ -392,13 +392,18 @@ public class OpenSeaService
ownerOption = "owner_address";
}
Uri.Builder builder = new Uri.Builder();
builder.encodedPath(api)
if (!TextUtils.isEmpty(api))
{
Uri.Builder builder = new Uri.Builder();
builder.encodedPath(api)
.appendQueryParameter(ownerOption, address)
.appendQueryParameter("limit", String.valueOf(PAGE_SIZE))
.appendQueryParameter("offset", String.valueOf(offset));
return executeRequest(networkId, builder.build().toString());
return executeRequest(networkId, builder.build().toString());
}
return JsonUtils.EMPTY_RESULT;
}
public String fetchAsset(long networkId, String contractAddress, String tokenId)

Loading…
Cancel
Save