title: Calling a Non-Static Method in a Null Object JAVA?
body: <pre><code>**public void testCompareTo() {
      System.out.println("compareTo");
      Patient p = null;
      Patient instance = null;
      int expResult = 0;
      int result = instance.compareTo(p);
      assertEquals(expResult, result);
  }**
  </code></pre>
  
  <p><strong>Is there a way to call a method in a null object or do I have to do an Exception here?</strong></p>