#fixed code
                              public static void main(String[] args) {

    System.out.println("********** Running Sikulix.main");

    int dl = RunTime.checkArgs(args);
    if (dl > -1) {
      testNumber = dl;
    }
    
    if (RunTime.testing) {
     rt = RunTime.get();
     testNumber = rt.getOptionNumber("testing.test", -1);
    }

    if (testNumber > -1) {
      rt = RunTime.get();
      if (!rt.testing) {
        rt.show();
        rt.testing = true;
        Debug.on(3);
      }            
      Tests.runTest(testNumber);
      System.exit(1);
    } else {
      rt = RunTime.get();
       Debug.on(3);
     
      File workDir = new File(rt.fSxProject, "Setup/target/Setup");
      boolean success = addFromProject("Setup", "Setup/sikulixapi.jar");
      rt.extractResourcesToFolderFromJar("sikulixapi.jar", "META-INF/libs/tessdata", new File(workDir,"stuff"), null);
      rt.terminate(1,"");

      if (rt.runningWinApp) {        
        popup("Hello World\nNot much else to do ( yet ;-)", rt.fSxBaseJar.getName());
        try {
        Screen scr = new Screen();
        scr.find(new Image(scr.userCapture("grab something to find"))).highlight(3);
        } catch (Exception ex) {
          popup("Uuups :-(\n" + ex.getMessage(), rt.fSxBaseJar.getName());
        }
        popup("Hello World\nNothing else to do ( yet ;-)", rt.fSxBaseJar.getName());
      }
      System.out.println("nothing to do (yet)");
    }
  }
#vulnerable code 
                              public static void main(String[] args) {

    System.out.println("********** Running Sikulix.main");

    int dl = RunTime.checkArgs(args);
    if (dl > -1) {
      testNumber = dl;
    }
    
    if (RunTime.testing) {
     rt = RunTime.get();
     testNumber = rt.getOptionNumber("testing.test", -1);
    }

    if (testNumber > -1) {
      rt = RunTime.get();
      if (!rt.testing) {
        rt.show();
        rt.testing = true;
        Debug.on(3);
      }            
      Tests.runTest(testNumber);
      System.exit(1);
    } else {
      rt = RunTime.get();
      if (rt.runningWinApp) {
        popup("Hello World\nNot much else to do ( yet ;-)", rt.fSxBaseJar.getName());
        try {
        Screen scr = new Screen();
        scr.find(new Image(scr.userCapture("grab something to find"))).highlight(3);
        } catch (Exception ex) {
          popup("Uuups :-(\n" + ex.getMessage(), rt.fSxBaseJar.getName());
        }
        popup("Hello World\nNothing else to do ( yet ;-)", rt.fSxBaseJar.getName());
      }
      System.out.println("nothing to do (yet)");
    }
  } 
                            #location 30 
                            #vulnerability type NULL_DEREFERENCE