mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Be more friendly about a null repsonse in the market checker
This commit is contained in:
parent
8368423835
commit
f00378d27c
1 changed files with 4 additions and 1 deletions
|
|
@ -54,9 +54,12 @@ class test {
|
|||
MarketSession.Callback callback = new MarketSession.Callback() {
|
||||
|
||||
@Override
|
||||
public void onResult(ResponseContext contex, Object oresp) {
|
||||
public void onResult(ResponseContext context, Object oresp) {
|
||||
try {
|
||||
AppsResponse response = (AppsResponse)oresp;
|
||||
if(response == null) {
|
||||
System.out.println("No response");
|
||||
}
|
||||
if(response.getAppCount() != 1) {
|
||||
System.out.println("Not in market, or multiple results");
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue