luoihoc/CallbackBillingPlugin — Issue #1: restoreDatabase causes System.err
Author: dcdustin
Created: 2011-12-16 07:19:32+00:00
State: open

Hey Luoihoc, love the idea, I'm just having some issues implementing it.

Here's what I get every time in logcat:

D/CallbackBillingPlugin(6933): CallbackBillingPlugin CALLED
D/CallbackBillingPlugin(6933): restore database
W/System.err(6933): java.lang.NullPointerException
W/System.err(6933): at com.phonegap.plugin.billing.plugin.CallbackBillingPlugin._restoreDatabase(CallbackBillingPlugin.java:82)
W/System.err(6933): at com.phonegap.plugin.billing.plugin.CallbackBillingPlugin.execute(CallbackBillingPlugin.java:43)
W/System.err(6933): at com.phonegap.api.PluginManager$1.run(PluginManager.java:145)
W/System.err(6933): at java.lang.Thread.run(Thread.java:1020)

I'm using PhoneGap 1.2.0, not sure if you've done testing on the newer version since I noticed your example included 1.1

Thanks for any help!