Handling null objects in object setters
<p>I am trying to use a nice near object setter, but have null issues.</p>

<p>My code right now:</p>

<pre><code>var Result = new RefundReplyObject
{
    AuthorisationNumber = reply.refundResponse.transactionDetails.authorisationNumber,
    ChargeValue = reply.refundResponse.transactionDetails.totalAmount.amount, 
    Message = reply.refundResponse.transactionDetails.message,
    ReconciliationReference = reply.refundResponse.transactionDetails.reconciliationReference,
    SettlementDate = reply.refundResponse.transactionDetails.settlementDate,
    Status = TransactionStatusToLocalModel(reply.refundResponse.transactionDetails.status),
    TransactionReference = reply.refundResponse.transactionDetails.transactionReference
};
</code></pre>

<p>BUT ... 'totalAmount' might be null. So, I get errors.</p>

<p>Is there a neat way to handle this, so that if 'totalAmount' is null, then set chargevalue to zero?</p>
