title: Why calling function with nullPtr does not crash my application?
body: <p>I don't understand something in C++ - I create some pointer on class and set it to null.</p>
  
  <p>Now I call some function with this null pointer and the function succeeds. Why doesn't it crash ? </p>
  
  <pre><code>class Entity
  {
  public:
      void Print() const
      {
          std::cout &lt;&lt; "Print" &lt;&lt; std::endl;
      }
  };
  
  int main()
  {
      Entity* ptr = nullptr;
      Entity&amp; _ref = *ptr;    // No crash here - I expected a null pointer exception
  
      _ref-&gt;Print();  
  }
  </code></pre>