Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NullPointerException: Attempt to invoke virtual method 'void androidx.appcompat.widget.SearchView.setVisibility(int)' on a null object reference #27

Closed
mshafeekvly opened this issue Oct 15, 2019 · 4 comments

Comments

@mshafeekvly
Copy link

java.lang.NullPointerException: Attempt to invoke virtual method 'void androidx.appcompat.widget.SearchView.setVisibility(int)' on a null object reference
at company.tap.gosellapi.internal.activities.CurrenciesActivity.onCreateOptionsMenu(CurrenciesActivity.java:100)
at android.app.Activity.onCreatePanelMenu(Activity.java:4074)
at androidx.fragment.app.FragmentActivity.onCreatePanelMenu(FragmentActivity.java:378)
at androidx.appcompat.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:94)
at androidx.appcompat.app.AppCompatDelegateImpl$AppCompatWindowCallback.onCreatePanelMenu(AppCompatDelegateImpl.java:2549)
at androidx.appcompat.app.AppCompatDelegateImpl.preparePanel(AppCompatDelegateImpl.java:1589)
at androidx.appcompat.app.AppCompatDelegateImpl.doInvalidatePanelMenu(AppCompatDelegateImpl.java:1869)
at androidx.appcompat.app.AppCompatDelegateImpl$2.run(AppCompatDelegateImpl.java:230)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

@HaithamSheshtawy
Copy link
Collaborator

Dear mshafeekvly,

Which version of SDK you are currently using ?

If you build for AndroidX then you have to integrate with SDK AndroidX version

also, If you enabled pro guard, then you have to add to add rule to keep SearchView class.

@WajeehMoalem
Copy link

@HaithamSheshtawy can u please view my issue ?

@HaithamSheshtawy
Copy link
Collaborator

could u plaese integrate with "com.github.Tap-Payments:goSellSDK-AndroidX:3.2.1" and let me know .

@mshafeekvly
Copy link
Author

I was using version 2.4.1. When I use "com.github.Tap-Payments:goSellSDK-AndroidX:3.2.1" it's working fine. Thank you for your reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants