OSDN Git Service

Fixed NPE in WifiApDialog found by monkey
authorAdam Powell <adamp@google.com>
Mon, 8 Mar 2010 19:35:15 +0000 (11:35 -0800)
committerAdam Powell <adamp@google.com>
Mon, 8 Mar 2010 19:35:15 +0000 (11:35 -0800)
Change-Id: I4f5e75e21c1e3433712e49a148db4af04215f0a1

src/com/android/settings/wifi/WifiApDialog.java

index 485e54e..7053d72 100644 (file)
@@ -108,11 +108,10 @@ class WifiApDialog extends AlertDialog implements View.OnClickListener,
         return null;
     }
 
-    @Override
     protected void onCreate(Bundle savedInstanceState) {
 
-        Spinner mSecurity = ((Spinner) mView.findViewById(R.id.security));
         mView = getLayoutInflater().inflate(R.layout.wifi_ap_dialog, null);
+        Spinner mSecurity = ((Spinner) mView.findViewById(R.id.security));
 
         setView(mView);
         setInverseBackgroundForced(true);