Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 2732621

Browse files
Merge pull request #4 from runrevpanos/merge_bugfix-14858
Merge bugfix 14858
2 parents 0b3c1bf + 89d8efd commit 2732621

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

engine/src/mbliphonestore.mm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,10 @@ void MCStoreGetPurchaseProperty(MCExecContext& ctxt, MCStringRef p_product_id, M
244244
{
245245
MCExecValue t_value;
246246
MCExecFetchProperty(ctxt, t_info, t_purchase, t_value);
247-
MCExecTypeConvertAndReleaseAlways(ctxt, t_value . type, &t_value, kMCExecValueTypeStringRef, &r_property_value);
247+
if (ctxt.HasError())
248+
r_property_value = MCValueRetain(kMCEmptyString);
249+
else
250+
MCExecTypeConvertAndReleaseAlways(ctxt, t_value . type, &t_value, kMCExecValueTypeStringRef, &r_property_value);
248251
return;
249252
}
250253

@@ -496,7 +499,7 @@ void MCPurchaseGetOriginalTransactionIdentifier(MCExecContext& ctxt, MCPurchase
496499
void MCPurchaseGetOriginalPurchaseDate(MCExecContext& ctxt, MCPurchase *p_purchase, integer_t& r_date)
497500
{
498501
MCiOSPurchase *t_ios_data = (MCiOSPurchase*)p_purchase->platform_data;
499-
\
502+
500503
SKPaymentTransaction *t_transaction = nil;
501504
SKPaymentTransaction *t_original_transaction = nil;
502505
t_transaction = t_ios_data->transaction;

0 commit comments

Comments
 (0)