catch exception whose cause I'm not sure of but that make it

impossible to launch the app when a game gets into a certain
state. Probably need to catch exceptions at a top level of game
listing process and offer to discard those in which non-recoverable
exceptions occur. Later...
This commit is contained in:
Eric House 2015-01-12 07:27:24 -08:00
parent 5c00e31d95
commit fc9c262796

View file

@ -265,6 +265,7 @@ public class Utils {
if ( s_phonesHash.containsKey( phone ) ) {
name = s_phonesHash.get( phone );
} else {
try {
name = null;
ContentResolver contentResolver = context.getContentResolver();
Cursor cursor =
@ -278,8 +279,10 @@ public class Utils {
name = cursor.getString( indx );
}
cursor.close();
s_phonesHash.put( phone, name );
} catch ( Exception ex ) {
name = "not found";
}
}
}
if ( null == name && phoneStandsIn ) {