mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-09 00:40:11 +01:00
Be more friendly about a null repsonse in the market checker
This commit is contained in:
parent
8368423835
commit
f00378d27c
@ -54,9 +54,12 @@ class test {
|
|||||||
MarketSession.Callback callback = new MarketSession.Callback() {
|
MarketSession.Callback callback = new MarketSession.Callback() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onResult(ResponseContext contex, Object oresp) {
|
public void onResult(ResponseContext context, Object oresp) {
|
||||||
try {
|
try {
|
||||||
AppsResponse response = (AppsResponse)oresp;
|
AppsResponse response = (AppsResponse)oresp;
|
||||||
|
if(response == null) {
|
||||||
|
System.out.println("No response");
|
||||||
|
}
|
||||||
if(response.getAppCount() != 1) {
|
if(response.getAppCount() != 1) {
|
||||||
System.out.println("Not in market, or multiple results");
|
System.out.println("Not in market, or multiple results");
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user