chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8368423
)
Be more friendly about a null repsonse in the market checker
author
Ciaran Gultnieks
<ciaran@ciarang.com>
Thu, 23 Jun 2011 23:07:54 +0000
(
00:07
+0100)
committer
Ciaran Gultnieks
<ciaran@ciarang.com>
Thu, 23 Jun 2011 23:07:54 +0000
(
00:07
+0100)
marketcheck/test.java
patch
|
blob
|
history
diff --git
a/marketcheck/test.java
b/marketcheck/test.java
index 63ef023bb95ff97782e02385b9e252a778cc0060..1abf7dbe8c1bcd71809a03744eb996c1f726d364 100644
(file)
--- a/
marketcheck/test.java
+++ b/
marketcheck/test.java
@@
-54,9
+54,12
@@
class test {
MarketSession.Callback callback = new MarketSession.Callback() {
\r
\r
@Override
\r
- public void onResult(ResponseContext contex, Object oresp) {
\r
+ public void onResult(ResponseContext contex
t
, Object oresp) {
\r
try {
\r
AppsResponse response = (AppsResponse)oresp;
\r
+ if(response == null) {
\r
+ System.out.println("No response");
\r
+ }
\r
if(response.getAppCount() != 1) {
\r
System.out.println("Not in market, or multiple results");
\r
} else {
\r