OSDN Git Service

Must initialize the new atomic..
authorRobert Greenwalt <rgreenwalt@google.com>
Mon, 17 Sep 2012 00:03:08 +0000 (17:03 -0700)
committerRobert Greenwalt <rgreenwalt@google.com>
Mon, 17 Sep 2012 00:03:08 +0000 (17:03 -0700)
bug:7172859
Change-Id: Ibaf390683fa36771215b463fb6b088f7430c0462

src/com/android/settings/TetherSettings.java

index 1564803..df44e91 100644 (file)
@@ -79,7 +79,7 @@ public class TetherSettings extends SettingsPreferenceFragment
     private String[] mWifiRegexs;
 
     private String[] mBluetoothRegexs;
-    private AtomicReference<BluetoothPan> mBluetoothPan;
+    private AtomicReference<BluetoothPan> mBluetoothPan = new AtomicReference<BluetoothPan>();
 
     private static final String WIFI_AP_SSID_AND_SECURITY = "wifi_ap_ssid_and_security";
     private static final int CONFIG_SUBTEXT = R.string.wifi_tether_configure_subtext;