Skip to content

Commit b111243

Browse files
committed
1 parent 61fc5ff commit b111243

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

AndroidBillingLibrary/src/net/robotmedia/billing/BillingRequest.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,14 @@ protected void processOkResponse(Bundle response) {
235235
public long run(IMarketBillingService mService) throws RemoteException {
236236
final Bundle request = makeRequestBundle();
237237
addParams(request);
238-
final Bundle response = mService.sendBillingRequest(request);
238+
final Bundle response;
239+
try {
240+
response = mService.sendBillingRequest(request);
241+
} catch (NullPointerException e) {
242+
Log.e(this.getClass().getSimpleName(), "Known IAB bug. See: http://code.google.com/p/marketbilling/issues/detail?id=25", e);
243+
return IGNORE_REQUEST_ID;
244+
}
245+
239246
if (validateResponse(response)) {
240247
processOkResponse(response);
241248
return response.getLong(KEY_REQUEST_ID, IGNORE_REQUEST_ID);

0 commit comments

Comments
 (0)