How to validate a Long data type field in java
<p>I have a Long field in java.I need to test whether this field has a value or not.I am using the following code:</p>

<pre><code>        Long phone_temp = queryAllPhoneNumbersForContact(contactId);
        if(phone_temp.equals(""))
        {
          System.out.println("Value  is null",""+phone_temp);
        }                       
</code></pre>

<p>Long has a null value however when i try to print the value of phone_temp it gives app crashed.How do i check whether phone_temp has a value.   </p>
