java.lang.NullPointerException是在什么地方抛出来的?

解决方案 »

  1.   

    public Thread threadgroup[];
    这里threadgroup数组没有初始化
    给分
      

  2.   

    Thread threadgroup[]= new Thread[9];
    new Thread(new 
                 SearchFast1(count),"thread "+String.valueOf(count));
    这句也不太好,SearchFast1本身就是一个线程。
      

  3.   

    to pentax()
    好像不行吧,为什么还要多建那么多线程呢?
      

  4.   

    public void Start()
           {try{
                 //add
                threadgroup = new Thread[9];
                 
                for(count=0;count<9;count++)
                {threadgroup[count]=new Thread(new 
                 SearchFast1(count),"thread "+String.valueOf(count));
                 threadgroup[count].start();
                }
               }catch(Exception e)
              {e.printStackTrace();}
            }