Skip to content

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method #51

@azharsprinting

Description

@azharsprinting

I had successfully run the sample project with my credentials, and Then I Implemented this into my project, it is initialized successfully, but when clicking the button to show consent it gives me this error.

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setTintList(android.content.res.ColorStateList)' on a null object reference
at com.cookieinformation.mobileconsents.ui.PreferenceItemViewHolder.(PrivacyPreferencesListAdapter.kt:113)
at com.cookieinformation.mobileconsents.ui.PrivacyPreferencesListAdapter.onCreateViewHolder(PrivacyPreferencesListAdapter.kt:52)
at com.cookieinformation.mobileconsents.ui.PrivacyPreferencesListAdapter.onCreateViewHolder(PrivacyPreferencesListAdapter.kt:24)

I copied everything from the sample app to my project, it is working in sample app but not in my project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions