Skip to content

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.SearchView.setOnQueryTextListener(android.support.v7.widget.SearchView$c)' on a null object reference #176

@KhanStan99

Description

@KhanStan99

I encountered this problem in latest library 2.1.5. When i provide permission and picker loads this error occurs.

build.gradle
implementation 'com.droidninja:filepicker:2.1.5'

Photo Picker Code:

private void initializePhotoPicker() {
        FilePickerBuilder.getInstance().setMaxCount(1)
                .setSelectedFiles(filePaths)
                .setActivityTheme(R.style.LibAppTheme)
                .pickFile(this);
    }

File Picker Code:

FilePickerBuilder.getInstance().setMaxCount(1)
                .setSelectedFiles(resumeFilePath)
                .setActivityTheme(R.style.LibAppTheme)
                .pickFile(this);

It was working fine in debug APK, but when i put it into PlayStore it gives me this error. (Same Code)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions