title: Error. ServiceToo.startPlay()' on a null object reference
body: <p>I placed my buttons for stop, play and pause in the Bound Service.  When I click the play btn in the MainActivity the app crash with an ServiceToo.startPlay()' on a null object reference.  </p>
  
  <p>How can I have access to control my player without it crashing. </p>
  
  <pre><code>  **This is the media player in the onCreate.in the Bound Service**
  
      public void onCreate() {
      mManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
      buildNote();
      Toast.makeText(this, "Service Created", Toast.LENGTH_SHORT).show();
      songlist = new String[]
              {"android.resource://" + getPackageName() + "/" + R.raw.blipotron,
                      "android.resource://" + getPackageName() + "/" + 
  R.raw.funk_game,
                      "android.resource://" + getPackageName() + "/" + 
  R.raw.poofy_reel};
  
  
      tracks[0] = "android.resource://" + getPackageName() + "/" + 
  R.raw.blipotron;
      tracks[1] = "android.resource://" + getPackageName() + "/" + 
  R.raw.funk_game;
      tracks[2] = "android.resource://" + getPackageName() + "/" + 
  R.raw.poofy_reel;
      mediaPlayer = MediaPlayer.create(getApplicationContext(), 
  Uri.parse(tracks[currentTrack]));
      mediaPlayer.setOnCompletionListener(this);
      //container = STARTED;
      //mediaPlayer.start();
  
      Toast.makeText(this, "Service Created", Toast.LENGTH_SHORT).show();
  }
  </code></pre>
  
  <p><strong>This is the buttons methods that are created in the Bound Service</strong></p>
  
  <pre><code> public void onCompletion(MediaPlayer mp) {
           //mp.release();
          if (currentTrack &lt; tracks.length -currentTrack) {
              currentTrack++;
              mp = MediaPlayer.create(this, Uri.parse(tracks[currentTrack]));
              mp.setOnCompletionListener(this);
              mp.start();
          }
      }
  
          public void play() {
              if (container == STOPPED) {
                  mediaPlayer.start();
              }
          }
  
          public void stop() {
              if (container == STARTED){
                  mediaPlayer.stop();
              }
          }
  
          public void pause() {
              if (container == STARTED){
                  mediaPlayer.pause();
              }
  
  findViewById(R.id.play_btn).setOnClickListener(this);
      findViewById(R.id.stop_btn).setOnClickListener(this);
      findViewById(R.id.pause_btn).setOnClickListener(this);
  </code></pre>
  
  <p><strong>This is the actual onClick buttons in the MainActivity</strong></p>
  
  <pre><code>private AudioService serviceRef;
  
  
  // On Click button instances
  @Override
  public void onClick(View v) {
      if (v.getId() == R.id.play_btn) {
          startService(new Intent(this, AudioService.class));
          serviceRef.play();
      } else if (v.getId() == R.id.stop_btn) {
          stopService(new Intent(this, AudioService.class));
          serviceRef.stop();
      } else if (v.getId() == R.id.pause_btn) {
          stopService(new Intent(this, AudioService.class));
          serviceRef.pause();
      }
  </code></pre>