title: Windows Azure query not executing in android app
body: <p>I have an android app that has two queries next to each other that both populate private variables. I ran through it on the emulator and it crashed due to null pointer exception. After debugging it and tracing through the programs, it goes to the code below and skips over it entirely and goes to imgFavorite line. Any suggestions as to why this is happening?</p>
  
  <pre><code>protected void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
  
              setContentView(R.layout.test_activity);
              try {
                  mClient = new MobileServiceClient(
                            "https://classconnect.azure-mobile.net/",
                            "HzaUWkJBnWTXxCuREwxyQSaxJSyyJm51",
                            this
                      );
                  // TODO: 3 Get the Mobile Service Table instance to use
                  mUserTable = mClient.getTable(User.class);
              } catch (MalformedURLException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
              }
                  mEmail = getIntent().getStringExtra("Email");
  
              mUserTable.where().field("email").eq(mEmail).execute(new TableQueryCallback&lt;User&gt;() {
                  @Override
                  public void onCompleted(List&lt;User&gt; result, int arg1,
                          Exception arg2, ServiceFilterResponse arg3) {
                      // TODO Auto-generated method stub
                      if (arg2 == null){
                          if(!result.isEmpty()){
                              currentUser = result.get(0);
                              System.out.println(currentUser.getfName());
                      } else{
                          System.out.println("Error");
                      }
                      }
                  }
              });
  
              mUserTable.select("email").execute(new TableQueryCallback&lt;User&gt;(){
  
                  @Override
                  public void onCompleted(List&lt;User&gt; result, int arg1,
                          Exception arg2, ServiceFilterResponse arg3) {
                      // TODO Auto-generated method stub
                      if(arg2 == null){
                          for(User i : result){
                              allUsers.add(i.getEmail());
                          }
                      } else{
                          System.out.println("Error");
                      }
                  }
  
              });
  
  
              imgFavorite = (ImageView) findViewById(R.id.imageView1);
  </code></pre>