Skip to content
Permalink
Browse files
front: Add null check when getting list of files in the auto save man…
…ager.
  • Loading branch information
fzurita committed Dec 13, 2015
1 parent 1cb8534 commit 096ca476f25351a972b4b6de42b9f8c51fb943d4
Showing with 8 additions and 3 deletions.
  1. +8 −3 src/paulscode/android/mupen64plusae/game/GameAutoSaveManager.java
@@ -46,10 +46,15 @@ public boolean accept(File pathname)

};

File[] fileList = savePath.listFiles(fileFilter);

//Add all files found
for( File file : savePath.listFiles(fileFilter) )
{
result.add( file.getPath() );
if(fileList != null)
{
for( File file : fileList )
{
result.add( file.getPath() );
}
}

//Sort by file name

0 comments on commit 096ca47

Please sign in to comment.