java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference

前端 未结 3 1959
忘掉有多难
忘掉有多难 2021-01-17 06:18

I\'m getting error when runtime my project.

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.olympic/com.prima.olympic.ProductD         


        
3条回答
  •  时光说笑
    2021-01-17 06:46

    Change to , because view is not about empty view. It's for custom view defined through class attr, like below:

    
    

    And you got error

    Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
    

提交回复
热议问题