onepf / OpenIAB

Open In-App Billing for Google Play, SlideMe, Amazon Store, Nokia Store, Samsung Apps, Yandex.Store, Appland, Aptoide, AppMall and Fortumo.
http://onepf.org/openiab/
Apache License 2.0
475 stars 171 forks source link

Amazon subscription purchase returns product without price, resulting in crash #518

Open clhols opened 8 years ago

clhols commented 8 years ago

AmazonAppstoreBillingService.getSkuDetails: .... final String price = product.getPrice().toString(); ....

If product.getPrice() returns null, you get a nullpointer exception. If think the toString() call is futile as getPrice() returns a String.

clhols commented 8 years ago

Made a pull request to remove the toString() call: https://github.com/onepf/OpenIAB/pull/519