output: #fixed code
                                  public void testXvideosRipper() throws IOException {
          if (!DOWNLOAD_CONTENT) {
              return;
          }
          List<URL> contentURLs = new ArrayList<URL>();
          contentURLs.add(new URL("http://www.xvideos.com/video1428195/stephanie_first_time_anal"));
          contentURLs.add(new URL("http://www.xvideos.com/video7136868/vid-20140205-wa0011"));
          for (URL url : contentURLs) {
              try {
                  XvideosRipper ripper = new XvideosRipper(url);
                  ripper.rip();
                  assert(ripper.getWorkingDir().listFiles().length > 1);
                  deleteDir(ripper.getWorkingDir());
              } catch (Exception e) {
                  e.printStackTrace();
                  fail("Error while ripping URL " + url + ": " + e.getMessage());
              }
          }
      }
input: #vulnerable code 
                                  public void testXvideosRipper() throws IOException {
          if (false && !DOWNLOAD_CONTENT) {
              return;
          }
          List<URL> contentURLs = new ArrayList<URL>();
          contentURLs.add(new URL("http://www.xvideos.com/video1428195/stephanie_first_time_anal"));
          contentURLs.add(new URL("http://www.xvideos.com/video7136868/vid-20140205-wa0011"));
          for (URL url : contentURLs) {
              try {
                  XvideosRipper ripper = new XvideosRipper(url);
                  ripper.rip();
                  assert(ripper.getWorkingDir().listFiles().length > 1);
                  deleteDir(ripper.getWorkingDir());
              } catch (Exception e) {
                  e.printStackTrace();
                  fail("Error while ripping URL " + url + ": " + e.getMessage());
              }
          }
      } 
                              #location 12 
                              #vulnerability type NULL_DEREFERENCE