android user requesting friends list gets a nullpoint exception
===

Im getting a null point exception when i runs this code.

what i tried to do is... get the useremail from the application to the string uemail and tried to fetch the friends who are friends with uemail.

activity

    InputStream is = null;
    		String result = "";
    		ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
    
    		String uemail = String.valueOf(usernameName);
    		nameValuePairs.add(new BasicNameValuePair("uemail", uemail));
    		try {
    			HttpClient httpclient = new DefaultHttpClient();
    			HttpPost httppost = new HttpPost(
    					"http://www.hopscriber.com/friends.php");
    			httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
    			HttpResponse response = httpclient.execute(httppost);
    			HttpEntity entity = response.getEntity();
    			is = entity.getContent();
    		} catch (Exception e) {
    			Log.e("log_tag", "Error in http connection" + e.toString());
    		}
    		// convert response to stringtry
    		try {
    			BufferedReader reader = new BufferedReader(new InputStreamReader(
    					is, "iso-8859-1"), 8);
    			StringBuilder sb = new StringBuilder();
    			String line = null;
    			while ((line = reader.readLine()) != null) {
    				sb.append(line + "\n");
    			}
    			is.close();
    
    			result = sb.toString();
    		} catch (Exception e) {
    			Log.e("log_tag", "Error converting result " + e.toString());
    		}
    		try {
    			ArrayList<HashMap<String, String>> contactList = new ArrayList<HashMap<String, String>>();
    
    			JSONArray jsonArray = new JSONArray(result);
    
    			if (jsonArray != null) {
    				for (int i = 0; i < jsonArray.length(); i++) {
    					JSONObject object = (JSONObject) jsonArray.get(i);
    
    					HashMap<String, String> map = new HashMap<String, String>();
    
    					map.put(TAG_Name, object.getString("uname"));
    					map.put(TAG_Place, object.getString("place"));
    					map.put(TAG_Time, object.getString("time"));
    
    					contactList.add(map);
    
    				}
    			}
    			list = (ListView) findViewById(R.id.list);
    			list.setEmptyView(findViewById(R.id.empty));
    
    			ListAdapter adapter = new SimpleAdapter(this, contactList,
    					R.layout.activity_menulist, new String[] { TAG_Name,
    							TAG_Place, TAG_Time }, new int[] { R.id.LR_Name,
    							R.id.LR_place, R.id.LR_time, });
    			list.setAdapter(adapter);
    
    		} catch (Exception e) {
    			e.printStackTrace();
    		}
    
    		// Launching new screen on Selecting Single ListItem
    		list.setOnItemClickListener(new OnItemClickListener() {
    
    			public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
    					long arg3) {
    				Toast.makeText(getBaseContext(), "Booyah", Toast.LENGTH_SHORT)
    						.show();
    			}
    
    		});
    	}

php that i runs is 

    <?php
    include "db_config.php";
    
    $sql=mysql_query("SELECT`uname`,`place`,`time` FROM `check_in`"  WHERE uname='".$_REQUEST['uemail']."'");
     while($row=mysql_fetch_assoc($sql)) $output[]=$row;
     print(json_encode($output));
     mysql_close();
    ?>

**what seems to be the problem?**
error

        java.lang.RuntimeException: Unable to start activity ComponentInfo{hopscriber.com/hopscriber.com.Menu}: java.lang.NullPointerException
    07-20 09:45:30.109: E/AndroidRuntime(460): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
    07-20 09:45:30.109: E/AndroidRuntime(460): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
    07-20 09:45:30.109: E/AndroidRuntime(460): 	at android.app.ActivityThread.access$1500(ActivityThread.java:117)
    07-20 09:45:30.109: E/AndroidRuntime(460): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
    07-20 09:45:30.109: E/AndroidRuntime(460): 	at android.os.Handler.dispatchMessage(Handler.java:99)
    07-20 09:45:30.109: E/AndroidRuntime(460): 	at android.os.Looper.loop(Looper.java:130)
    07-20 09:45:30.109: E/AndroidRuntime(460): 	at android.app.ActivityThread.main(ActivityThread.java:3683)
    07-20 09:45:30.109: E/AndroidRuntime(460): 	at java.lang.reflect.Method.invokeNative(Native Method)
    07-20 09:45:30.109: E/AndroidRuntime(460): 	at java.lang.reflect.Method.invoke(Method.java:507)
    07-20 09:45:30.109: E/AndroidRuntime(460): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
    07-20 09:45:30.109: E/AndroidRuntime(460): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
    07-20 09:45:30.109: E/AndroidRuntime(460): 	at dalvik.system.NativeStart.main(Native Method)
    07-20 09:45:30.109: E/AndroidRuntime(460): Caused by: java.lang.NullPointerException
    07-20 09:45:30.109: E/AndroidRuntime(460): 	at hopscriber.com.Menu.tryme(Menu.java:224)
    07-20 09:45:30.109: E/AndroidRuntime(460): 	at hopscriber.com.Menu.onCreate(Menu.java:82)
    07-20 09:45:30.109: E/AndroidRuntime(460): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
    07-20 09:45:30.109: E/AndroidRuntime(460): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)


