title: Checking object as null using objectutils failed
body: <p>I am using <code>ObjectUtils.isEmpty()</code> as generic to check for the null and empty fields.It was working fine for the term like:</p>
  
  <pre><code>MyClass class = new MyClass()
  class.setName(null);
  
  if (!ObjectUtils.isEmpty(class.getName)) {
      return "Name";
  }
  </code></pre>
  
  <p>But it is not working , when am trying it for the Object as below:</p>
  
  <pre><code>Object activatedDate = jsonObject.getJSONArray("records")
            .getJSONObject(i).get("ActivatedDate");
  return ObjectUtils.isEmpty(activatedDate) ? null : "hello";
  </code></pre>
  
  <p>and My json is:</p>
  
  <pre><code>[
    {
      "LastModifiedDate": "2018-05-23T10:58:18.000+0000",
      "Order_Submission_Outcome__c": "test",
      "Number_of_Orders__c": 0,
      "Sales_Code__c": null,
      "Opportunity__c": "FERERR",
      "Contract_Type__c": "EZ Order Form",
      "StatusCode": "Draft",
      "CreatedDate": "2018-05-23T10:56:22.000+0000",
      "Id": "FERERR",
      "ActivatedDate": null,
      "Contract_Status__c": "ACTIVE",
      "Opportunity_Act_Total_Lines__c": 1
    }
  ]
  </code></pre>
  
  <p>But it always returns <code>hello</code> even though the object <code>activatedDate</code> is null. What is the problem?</p>