java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.File[] java.io.File.listFiles(java.io.FileFilter)' on a null object reference
at com.obsez.android.lib.filechooser.ChooserDialog.listDirs(ChooserDialog.java:288)
at com.obsez.android.lib.filechooser.ChooserDialog.refreshDirs(ChooserDialog.java:371)
at com.obsez.android.lib.filechooser.ChooserDialog.build(ChooserDialog.java:204)
at com.verveba.pimapp.view.frgmnts.LocTestingWorstPortFragment.chooseDTPFile(LocTestingWorstPortFragment.java:304)
new ChooserDialog().with(getActivity())
.withFilter(false, false, "jpg", "jpeg", "png")
.withResources(R.string.dtp_file, R.string.title_choose, R.string.dialog_cancel)
.withChosenListener(new ChooserDialog.Result() {
@Override
public void onChoosePath(String path, File pathFile) {
}
}
})
.build()
.show();