(thread) Thread.setPriority on dead thread throws NullPointerException

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.4.0
    • Component/s: core-libs
    • None
    • generic
    • solaris_7

      % cat Main1.java


      class Main1 extends Thread {
          public static void main(String[] args) {
      Main1 m = new Main1();
      m.start();
         try {
         m.join();
         }catch(Throwable exp){}
      m.setPriority(5);
          }

          public void run() {
          }
      }

      % /usr/local/java/jdk1.4/solsparc/bin/java Main1 Exception in thread "main" java.lang.NullPointerException
      at java.lang.Thread.setPriority(Thread.java:880)
      at Main1.main(Main1.java:10)

      ###@###.### 2001-10-17

            Assignee:
            Pete Soper (Inactive)
            Reporter:
            Dean Long
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: