title: Unable to start activity component info Null Pointer Exception ProgressDialog
body: <p>I'm getting this Null Pointer exception. Every thread on here I find it has to do with xml objects but mine is crashing on anything to do with Progress Dialog.  Here is the code</p>
  
  <pre><code> public class ActivityCommissions extends Activity {
  ProgressDialog pdialog;
  AlertDialogManager alert = new AlertDialogManager();
  ListView list;
  public CommissionsAdapter adapter;
  EditText editsearch;
  private ImageView refresh;
  static ArrayList&lt;Commission&gt; arraylist = new ArrayList&lt;Commission&gt;();
  
  String pageToken;
  GPSTracker gpstracker;
  static double latitude, longitude;
  
  ConnectionDetector cd;
  
   }
   @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.commissions);
      /* DO IRRELEVANT STUFF */
      search();
  }
      @SuppressWarnings("unused")
  private void Search() {
      //CLEAR SEARCH RESULTS
      arraylist.clear();
  
      /* CRASHES HERE */
      pdialog = ProgressDialog.show(this.getParent(), "", "Retrieving Commissions...");
  
      /* INTIALIZE REQUEST QUEUE */
      RequestQueue queue = Volley.newRequestQueue(this);
  
      /* latitude &amp;&amp; longitude */
      latitude = gpstracker.getLatitude();
      longitude = gpstracker.getLongitude();
  
      /* MORE IRRELEVANT STUFF */
   }
  </code></pre>
  
  <p>It crashes on the line that reads</p>
  
  <pre><code> pdialog = ProgressDialog.show(this.getParent(), "", "Retrieving Commissions...");
  </code></pre>
  
  <p>Here is the error log</p>
  
  <pre><code>08-01 12:37:19.626: W/dalvikvm(19602): threadid=1: thread exiting with uncaught exception (group=0x40ab0a08)
  08-01 12:37:19.636: E/AndroidRuntime(19602): FATAL EXCEPTION: main
  08-01 12:37:19.636: E/AndroidRuntime(19602): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appusa1/com.appusa1.ActivityCommissions}: java.lang.NullPointerException
  08-01 12:37:19.636: E/AndroidRuntime(19602):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2225)
  08-01 12:37:19.636: E/AndroidRuntime(19602):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2260)
  08-01 12:37:19.636: E/AndroidRuntime(19602):    at android.app.ActivityThread.access$600(ActivityThread.java:139)
  08-01 12:37:19.636: E/AndroidRuntime(19602):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1277)
  08-01 12:37:19.636: E/AndroidRuntime(19602):    at android.os.Handler.dispatchMessage(Handler.java:99)
  08-01 12:37:19.636: E/AndroidRuntime(19602):    at android.os.Looper.loop(Looper.java:156)
  08-01 12:37:19.636: E/AndroidRuntime(19602):    at android.app.ActivityThread.main(ActivityThread.java:5045)
  08-01 12:37:19.636: E/AndroidRuntime(19602):    at java.lang.reflect.Method.invokeNative(Native Method)
  08-01 12:37:19.636: E/AndroidRuntime(19602):    at java.lang.reflect.Method.invoke(Method.java:511)
  08-01 12:37:19.636: E/AndroidRuntime(19602):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
  08-01 12:37:19.636: E/AndroidRuntime(19602):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
  08-01 12:37:19.636: E/AndroidRuntime(19602):    at dalvik.system.NativeStart.main(Native Method)
  08-01 12:37:19.636: E/AndroidRuntime(19602): Caused by: java.lang.NullPointerException
  08-01 12:37:19.636: E/AndroidRuntime(19602):    at android.app.AlertDialog.resolveDialogTheme(AlertDialog.java:142)
  08-01 12:37:19.636: E/AndroidRuntime(19602):    at android.app.AlertDialog.&lt;init&gt;(AlertDialog.java:98)
  08-01 12:37:19.636: E/AndroidRuntime(19602):    at android.app.ProgressDialog.&lt;init&gt;(ProgressDialog.java:77)
  08-01 12:37:19.636: E/AndroidRuntime(19602):    at android.app.ProgressDialog.show(ProgressDialog.java:110)
  08-01 12:37:19.636: E/AndroidRuntime(19602):    at android.app.ProgressDialog.show(ProgressDialog.java:99)
  08-01 12:37:19.636: E/AndroidRuntime(19602):    at android.app.ProgressDialog.show(ProgressDialog.java:94)
  08-01 12:37:19.636: E/AndroidRuntime(19602):    at com.appusa1.ActivityCommissions.Search(ActivityCommissions.java:127)
  08-01 12:37:19.636: E/AndroidRuntime(19602):    at com.appusa1.ActivityCommissions.onCreate(ActivityCommissions.java:87)
  08-01 12:37:19.636: E/AndroidRuntime(19602):    at android.app.Activity.performCreate(Activity.java:4543)
  08-01 12:37:19.636: E/AndroidRuntime(19602):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1071)
  08-01 12:37:19.636: E/AndroidRuntime(19602):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2181)
  08-01 12:37:19.636: E/AndroidRuntime(19602):    ... 11 more
  </code></pre>
  
  <p>Any idea why it's crashing on pdialog? Any help is greatly appreciated. And yes I have imported the ProgressDialog class</p>