Error in Thread Resuming after it is put to sleep
<p>Hello i am having a problem with resuming a thread my code is </p>

<pre><code> public boolean Wait(String Reply){     
        if (Reply.equalsIgnoreCase("Y")){
            try {
                t.resume();
            }
            catch (Exception e){
              System.out.println("\n" + "The exception in resume thread method:::: " + e);                
            }
            System.out.println("\n" + "In the Wait Function of Sender");
            return true;

        }
        JOptionPane.showMessageDialog(j ,
                    "Please Wait While The User Accpets the Trasmission ",
                    "",
                    JOptionPane.INFORMATION_MESSAGE);


       try{
         t = new Thread(this);
         t.sleep(100000);  
        }
       catch (InterruptedException ie){
         System.out.println(ie.getMessage());
       }
    return false;
}
</code></pre>

<p>I might explain you how it works as it will help u determine the problem.
 First the thread is put to sleep......Then i call this <code>public boolean Wait()</code> function from another function named <code>ReplyYes</code> which passes the value "Y" and i then try to resume the thread but the <code>t.resume()</code> function call, instead of resuming the thread gives me a <code>Java.Lang.Null.PointerException</code> and the thread isn't resumed resulting in returning a FALSE value. Plus because of this thread i can't even Stop  my Service i have to wait for the thread to timeOut.</p>

<p>Can anyone explain how to make it work correctly!!
Thank you</p>
