java.lang.NullPointerException

Attempt to invoke virtual method 'void android.view.View.getWindowVisibleDisplayFrame(android.graphics.Rect)' on a null object reference


Solutions on the web21499

Solution icon of stackoverflow
Attempt to invoke virtual method 'void android.view.View.getWindowVisibleDisplayFrame(android.graphics.Rect)' on a null object reference

Solution icon of stackoverflow
Attempt to invoke virtual method 'void android.view.View.getWindowVisibleDisplayFrame(android.graphics.Rect)' on a null object reference

Solution icon of stackoverflow
Attempt to invoke virtual method 'void android.view.View.getWindowVisibleDisplayFrame(android.graphics.Rect)' on a null object reference

Solution icon of web
via blogspot.com by Unknown author, 1 year ago
Attempt to invoke virtual method 'void android.view.View.getWindowVisibleDisplayFrame(android.graphics.Rect)' on a null object reference

Solution icon of web
via JIRA by Sorin, 1 year ago
Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(android.graphics.Rect)' on a null object reference

Solution icon of web
via JIRA by Michal M, 1 year ago
Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(android.graphics.Rect)' on a null object reference

Solution icon of web
via github.com by Unknown author, 1 year ago
Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(android.graphics.Rect)' on a null object reference

Solution icon of stackoverflow
Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(android.graphics.Rect)' on a null object reference

Solution icon of stackoverflow
Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(android.graphics.Rect)' on a null object reference

Solution icon of web
via JIRA by Michal M, 1 year ago
Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(android.graphics.Rect)' on a null object reference

Stack trace

  • java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.getWindowVisibleDisplayFrame(android.graphics.Rect)' on a null object reference at android.widget.PopupWindow.getMaxAvailableHeight(PopupWindow.java:1764) at android.widget.ListPopupWindow.buildDropDown(ListPopupWindow.java:1206) at android.widget.ListPopupWindow.show(ListPopupWindow.java:596) at android.widget.AutoCompleteTextView.showDropDown(AutoCompleteTextView.java:1215) at android.widget.AutoCompleteTextView.updateDropDownForFilter(AutoCompleteTextView.java:1084) at android.widget.AutoCompleteTextView.onFilterComplete(AutoCompleteTextView.java:1066) at android.widget.Filter$ResultsHandler.handleMessage(Filter.java:285) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6119) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 5 months ago
31 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 7 months ago
81 more bugmates