01-01 00:09:33.959: ERROR/AndroidRuntime(3475): FATAL EXCEPTION: Thread-10
01-01 00:09:33.959: ERROR/AndroidRuntime(3475): java.lang.NullPointerException
01-01 00:09:33.959: ERROR/AndroidRuntime(3475):     at kr.test.image.ImageDownloader$2$1.run(ImageDownloader.java:165)


실제 기기에서 위와 같은 에러가 납니다. ㅠㅠ
하지만 에뮬에서는 정상적으로 돌아가는데말이죠 ㅠ 2.1 2.2 다 정상적으로 돌아가는데
실제 단말에서 저런에러납니다. ㅠ  검색해도 전 못찾겠더라고요
혹시 위 에러 해결하신분 한수 부탁드립니다.


for(int i=0; i<rowsContents;i++){
 for(int j=0;j<5;j++){
  if(ImageFirst[i][j].trim().length()!=0){
   try {
       String filepath = StaticValue.IMAGE_URL+ImageFirst[i][j].toString()+".jpg";
       myUrl = new URL(filepath);
      } catch (MalformedURLException e) {
       e.printStackTrace();
      }
     
      try {
       conn = (HttpURLConnection) myUrl.openConnection();
       conn.connect();
       is[i][j] = conn.getInputStream();
       //BitmapFactory.Options options = new BitmapFactory.Options();
       //options.inSampleSize = 4;
       bmp[i][j] = BitmapFactory.decodeStream(is[i][j]);
       conn.disconnect();
      } catch (IOException e) {
       e.printStackTrace();
      }
      
      try {
    file[i][j] = new File(path+"/"+ImageFirst[i][j].toString()+".jpg");
    file[i][j].createNewFile();
    out[i][j] = new FileOutputStream(file[i][j]);
    bmp[i][j].compress(Bitmap.CompressFormat.JPEG, 100, out[i][j]);     <==165 라인이에용
    out[i][j].flush();
    out[i][j].close();
    
   } catch(IOException e) {
    Log.i("Error reading image", e.getMessage());
   }
   
   bmp[i][j].recycle();
  }   
 }
}