try {
global.getDaoRegistry().create(mLocation);
} catch (SQLException e) {
UmbrellaUtil.logIt(SettingsActivity.this, Log.getStackTraceString(e.getCause()));
}
<BUG>}
List<Registry> selCountry = null;</BUG>
try {
<BUG>selCountry = global.getDaoRegistry().queryForEq(Registry.FIELD_NAME, "country");
} catch (SQLException e) {
UmbrellaUtil.logIt(SettingsActivity.this, Log.getStackTraceString(e.getCause()));
}
if (selCountry != null && selCountry.size() > 0) {</BUG>
mCountry = selCountry.get(0);

try {
selLoc = global.getDaoRegistry().queryForEq(Registry.FIELD_NAME, "location");
} catch (SQLException e) {
