From 378b6f674064e373f1be4d230608be4d0bddbb4f Mon Sep 17 00:00:00 2001 From: Peter Kuterna Date: Sun, 28 Nov 2010 22:35:31 +0100 Subject: Possible NumberFormatException of parseInt is outside try-catch Change-Id: I77c1e41185a8d3a1724af848d6bbfbb1da816b55 --- src/com/android/settings/SoundSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/SoundSettings.java b/src/com/android/settings/SoundSettings.java index a735268b1..2984684fc 100644 --- a/src/com/android/settings/SoundSettings.java +++ b/src/com/android/settings/SoundSettings.java @@ -318,8 +318,8 @@ public class SoundSettings extends PreferenceActivity implements public boolean onPreferenceChange(Preference preference, Object objValue) { final String key = preference.getKey(); if (KEY_EMERGENCY_TONE.equals(key)) { - int value = Integer.parseInt((String) objValue); try { + int value = Integer.parseInt((String) objValue); Settings.System.putInt(getContentResolver(), Settings.System.EMERGENCY_TONE, value); } catch (NumberFormatException e) { -- cgit v1.2.3