title: Null Pointer Exception in Toast
body: <p>I have not idea on what's going on. I have a timer and i need to show a toast message so i have to use runOnUiThread to make it happend. But when the code execution gets to Toast, it fail:</p>
  
  <pre><code>private void Print(String message)
      {
         final String CustomMessage = message;
          try{
              this.runOnUiThread(new Runnable() {
                  @Override
                  public void run() {
                      try
                      {
                      Toast.makeText(MainActivity.this,CustomMessage,Toast.LENGTH_LONG).show();
                      }
                      catch (Exception e)
                      {
                              String b = e.getMessage();//Null Pointer Exception.
                      }
                  }
              });
          }
          catch (Exception Error){}
      }
  </code></pre>
  
  <p>Here the watch.</p>
  
  <p><img src="https://i.stack.imgur.com/a8AT0.png" alt="enter image description here"></p>
  
  <p>What could be the cause? I've always done like that and nothing is null.</p>
  
  <p>Update</p>
  
  <p>Here one part of the LogCat</p>
  
  <p><img src="https://i.stack.imgur.com/G8uXh.png" alt="enter image description here"></p>