title: Null Pointer Exception using URLDecoder.decode(string s, string ) in GCMIntentService
body: <p>I use this code (GCMIntentService.java) for decode a message received from the GCM:</p>
  
  <pre><code>String message = intent.getStringExtra("message"); // works fine.
  try {
       message = URLDecoder.decode(message, "UTF-8"); // decode fine, but get the error below.
  } catch (UnsupportedEncodingException e1) {
  throw new AssertionError("UTF-8 is unknown");
  }
  </code></pre>
  
  <p>The message received is identical to the message sent (encoded). For encode, i use this:</p>
  
  <pre><code>String message = URLEncoder.encode(items[0].getMessage(),"UTF-8"); // works fine
  </code></pre>
  
  <p>And i get this error, i can't find cause of null pointer exception. </p>
  
  <pre><code>07-19 17:33:44.687: E/AndroidRuntime(21742): FATAL EXCEPTION: IntentService[GCMIntentService-0002223333444-2]
  07-19 17:33:44.687: E/AndroidRuntime(21742): java.lang.NullPointerException
  07-19 17:33:44.687: E/AndroidRuntime(21742):    at com.chat.ak.GCMIntentService.onMessage(GCMIntentService.java:70)
  07-19 17:33:44.687: E/AndroidRuntime(21742):    at com.google.android.gcm.GCMBaseIntentService.onHandleIntent(GCMBaseIntentService.java:223)
  07-19 17:33:44.687: E/AndroidRuntime(21742):    at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:59)
  07-19 17:33:44.687: E/AndroidRuntime(21742):    at android.os.Handler.dispatchMessage(Handler.java:99)
  07-19 17:33:44.687: E/AndroidRuntime(21742):    at android.os.Looper.loop(Looper.java:130)
  07-19 17:33:44.687: E/AndroidRuntime(21742):    at android.os.HandlerThread.run(HandlerThread.java:60)
  </code></pre>
  
  <p>Thank you very much in advance.</p>