title: Logging with NullPointerException?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2344654/log-runtime-exceptions-in-java-using-log4j">Log runtime Exceptions in Java using log4j</a>  </p>
  </blockquote>
  
  
  
  <p>I am developing a desktop application. I used Log4j to write log. How can I write log with <code>NullPointerException</code>? I didn't predict that could happen.</p>