But from there a couple of question arise as to what the actual bug is:- Is the authTransaction present and just not being correctly searched for? - Should releaseOrderPaymentPreference be called if there is no authorized transaction? The code appears to assume the payment pref is in an authorized state so the check must be taking place earlier.
Regards Scott HotWax Media http://www.hotwaxmedia.com On 16/11/2009, at 11:49 AM, Jacques Le Roux wrote:
While trying to edit DEMO10090 order items I got an NPE inreleaseOrderPaymentPreference[917] releaseContext.put("releaseAmount", authTransaction.getBigDecimal("amount"));I fixed it using if (UtilValidate.isNotEmpty(authTransaction)) {releaseContext.put("releaseAmount", authTransaction.getBigDecimal("amount"));} else { releaseContext.put("releaseAmount", null); }But then I got Error in Service [releaseOrderPaymentPreference]: Problem releasing paymentI gave up at this stage. What could be the reason ? Thanks Jacques
smime.p7s
Description: S/MIME cryptographic signature
