or a NullPointerException might happen as 'hasDueDate==true' is not the result of a test to ensure that 'trans' overwrites 'getDueDate()' at all, so the default implementation from 'IZUGFeRDExportableTransaction' might get used which returns the unusable result 'null'.