DF#QCADOOCLS-1576 Fixed NPE in master orders.
DF#QCADOOMES-1912 Fixed NPE in orders.