fix assertion failure reported by google when unable to create

directory on SD card.  Just return null and carry on as if SD card not
writable.
This commit is contained in:
Andy2 2011-08-06 20:05:30 -07:00
parent ed832f9545
commit fc650ef317

View file

@ -1005,7 +1005,10 @@ public class GameUtils {
result = new File( storage.getPath(), packdir );
if ( !result.exists() ) {
result.mkdirs();
Assert.assertTrue( result.exists() );
if ( !result.exists() ) {
Utils.logf( "unable to create sd dir %s", packdir );
result = null;
}
}
}
}