Fix potential problem with returned NULL values

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11055 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2005-05-25 20:45:03 +00:00
parent ed060f44a6
commit c3fa5aeabf

View File

@ -446,8 +446,12 @@ int gnc_hbci_dialog_run_until_ok(HBCITransDialog *td,
((AQBANKING_VERSION_MINOR > 0) || \
((AQBANKING_VERSION_MINOR == 0) && \
(AQBANKING_VERSION_PATCHLEVEL > 6)))))
max_purpose_lines = AB_TransactionLimits_GetMaxLinesPurpose
( AB_JobSingleTransfer_GetFieldLimits(job) );
{
const AB_TRANSACTION_LIMITS *joblimits = AB_JobSingleTransfer_GetFieldLimits(job);
max_purpose_lines = (joblimits ?
AB_TransactionLimits_GetMaxLinesPurpose (joblimits) :
2);
}
#else
max_purpose_lines = AB_JobSingleTransfer_GetMaxPurposeLines(job);
#endif