mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
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:
parent
ed832f9545
commit
fc650ef317
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue