Fix NullPointerExveption
This commit is contained in:
parent
80a1f6c4c8
commit
bc1d9fed7f
1 changed files with 7 additions and 0 deletions
|
@ -47,6 +47,13 @@ public class FPicker extends Activity {
|
|||
private void fill(File folder)
|
||||
{
|
||||
File[]dirs = folder.listFiles();
|
||||
while( dirs == null )
|
||||
{
|
||||
folder = new File(folder.getParent());
|
||||
if( folder == null )
|
||||
return;
|
||||
dirs = folder.listFiles();
|
||||
}
|
||||
this.setTitle("Current Dir: "+folder.getName());
|
||||
List<Item> dir = new ArrayList<Item>();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue