Pessoal estou rodando meu programa e está dando o seguinte erro:
Exception in thread “main” java.lang.NullPointerException
at Tela_Principal.main(Tela_Principal.java:117)
File diretorio1 = new File("\192.168.2.100/fabio teste/xx");
File[] arquivos_pdf = diretorio1.listFiles(new FileFilter() {
public boolean accept(File pathname) {
return pathname.getName().toLowerCase().endsWith(".pdf");}});
Integer i=0;
for (i = 0; i < arquivos_pdf.length; i++) {
if(arquivos_pdf[i].getName().length()==18){
File dir = new File("\\192.168.2.100/fabio teste/xxxx");
arquivos_pdf[i].renameTo(new File(dir, arquivos_pdf[i].getName()));
}
else{
