title: Check if object is null, then check if that object holds not null reference to another object
body: <p>I have a condition like this:</p>
  
  <pre><code>if (someObject != null)
      {
          templateUri = someObject .getSettingsObject() != null
                  ? someObject .getSettingsObject().getPlanUri() : null;
      }
  </code></pre>
  
  <p>Instead of using multiple null checks, can I club this conditions into a single statement and run my code without getting NULL pointer Exception?</p>