title: TextField clickable if it is not null
body: <p>sorry to ask a stupid question but I really do not know how to solve. I have one textView and I want it to be clickable if it is not null. How can I do to achieve this?</p>
  
  <pre><code> c = (TextView) claims.findViewById(R.id.textView49);
   c.setOnClickListener(new View.OnClickListener()
                                   {
              if(c!=null)
  
              {
                  @Override
                  public void onClick (View v){
                  Intent intent = new Intent(getActivity(), Receipt.class);
                  startActivity(intent);
              }
  
              }
              });
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>    Error:(137, 13)  error: illegal start of type
      Error:(137, 17) error: &lt;identifier&gt; expected
      Error:(137, 19) error: ';' expected
      Error:(140, 26) error: ';' expected
      Error:(146, 14) error: ')' expected
  </code></pre>