NullPointerException while getting data from Service
<p>Ok so i have got a app i'm working on, and i'm probably jumping a little ahead of my knowledge but here is my problem.  I cannot get it to submit something to my database.  The php file is working i have tested it.  And i am able to receive from the database.  Something is wrong with the input, and help would be greatly appreciated.</p>

<p>My input </p>

<pre><code>public class NewIdea extends Activity{
 // Progress Dialog
private ProgressDialog pDialog;

JSONParser jsonParser = new JSONParser();
EditText inputName;
EditText inputDesc;

// url to create new product
private static String url_create_product = "http://theideavault.no-ip.org/PHP/create_idea.php";

// JSON Node names
private static final String TAG_SUCCESS = "success";

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_add_screen);

    // Edit Text
    inputName = (EditText) findViewById(R.id.inId);
    inputDesc = (EditText) findViewById(R.id.inDis);

    // Create button
    Button btnCreateIdea = (Button) findViewById(R.id.btnCreateIdea);

    // button click event
    btnCreateIdea.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View view) {
            // creating new product in background thread
            new CreateNewProduct().execute();
        }
    });
}

/**
 * Background Async Task to Create new product
 * */
class CreateNewProduct extends AsyncTask&lt;String, String, String&gt; {

    /**
     * Creating product
     * */
    List&lt;NameValuePair&gt; params = new ArrayList&lt;NameValuePair&gt;();
    protected String doInBackground(String...args) {
        String name = inputName.getText().toString();
        String description = inputDesc.getText().toString();

        // Building Parameters
        List&lt;NameValuePair&gt; params = new ArrayList&lt;NameValuePair&gt;();
        params.add(new BasicNameValuePair("name", name));
        params.add(new BasicNameValuePair("description", description));

        // getting JSON Object
        // Note that create product url accepts POST method
        JSONObject json = jsonParser.getJSONFromUrl(url_create_product,
                "POST", params);

        // check log cat fro response
        Log.d("Create Response", json.toString());

        // check for success tag
        try {
            int success = json.getInt(TAG_SUCCESS);

            if (success == 1) {
                // successfully created product
                Intent i = new Intent(getApplicationContext(), GetAllIdeas.class);
                startActivity(i);

                // closing this screen
                finish();
            } else {
                // failed to create product
            }
        } catch (JSONException e) {
            e.printStackTrace();
        }

        return null;
    }

    /**
     * After completing background task Dismiss the progress dialog
     * **/
    protected void onPostExecute(String file_url) {
        // dismiss the dialog once done
        pDialog.dismiss();
    }

}
</code></pre>

<p>}</p>

<p>and this is the error im getting </p>

<pre><code> E/NetlinkEvent( 1347): NetlinkEvent::FindParam(): Parameter 'UDEV_LOG' not found
E/NetlinkEvent( 1347): NetlinkEvent::FindParam(): Parameter 'UDEV_LOG' not found
E/NetlinkEvent( 1347): NetlinkEvent::FindParam(): Parameter 'UDEV_LOG' not found
E/JSON Parser(12013): Error parsing data org.json.JSONException: Value create_Idea.php of type java.lang.String cannot be converted to JSONObject
W/dalvikvm(12013): threadid=9: thread exiting with uncaught exception (group=0x40018560)
E/AndroidRuntime(12013): FATAL EXCEPTION: AsyncTask #1
E/AndroidRuntime(12013): java.lang.RuntimeException: An error occured while executing doInBackground()
E/AndroidRuntime(12013): at android.os.AsyncTask$3.done(AsyncTask.java:200)
E/AndroidRuntime(12013): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:274)
E/AndroidRuntime(12013): at java.util.concurrent.FutureTask.setException(FutureTask.java:125)
E/AndroidRuntime(12013): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:308)
E/AndroidRuntime(12013): at java.util.concurrent.FutureTask.run(FutureTask.java:138)
E/AndroidRuntime(12013): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
E/AndroidRuntime(12013): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
E/AndroidRuntime(12013): at java.lang.Thread.run(Thread.java:1019)
E/AndroidRuntime(12013): Caused by: java.lang.NullPointerException
E/AndroidRuntime(12013): at jon.dik.theideavault.NewIdea$CreateNewProduct.doInBackground(NewIdea.java:82)
E/AndroidRuntime(12013): at jon.dik.theideavault.NewIdea$CreateNewProduct.doInBackground(NewIdea.java:1)
E/AndroidRuntime(12013): at android.os.AsyncTask$2.call(AsyncTask.java:185)
E/AndroidRuntime(12013): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
E/AndroidRuntime(12013): ... 4 more
W/ActivityManager( 1475):   Force finishing activity jon.dik.theideavau
</code></pre>
