1. Are you ready for the Galaxy S20? Here is everything we know so far!

Fatal Exception: java.lang.NullPointerException

Discussion in 'Android Development' started by Minuth, Feb 20, 2020.

  1. Minuth

    Minuth Lurker
    Thread Starter

    I got this error "Attempt to invoke virtual method 'void android.view.View.setOnClickListener(android.view.View$OnClickListener)".
    Note: problem with few devices only, not all. How can I fix it?
     



    1. Download the Forums for Android™ app!


      Download

       
  2. 23tony

    23tony Well-Known Member

    Difficult to help without more context. Can you share your code and the full stack trace when it fails?
     
Loading...
Similar Threads - Fatal Exception java
  1. ilyas khan
    Replies:
    2
    Views:
    177
  2. Dngrsone
    Replies:
    32
    Views:
    806
  3. Umang Upadhyay
    Replies:
    1
    Views:
    955
  4. DavidWooderson
    Replies:
    1
    Views:
    859
  5. Francesco10
    Replies:
    0
    Views:
    900
  6. gossmarian
    Replies:
    0
    Views:
    794
  7. Dngrsone
    Replies:
    206
    Views:
    9,300
  8. flamefoxbob
    Replies:
    2
    Views:
    1,630
  9. Ashish87
    Replies:
    0
    Views:
    1,619
  10. Michi132987
    Replies:
    0
    Views:
    804

Share This Page

Loading...