java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.getDrawingRect(android.graphics.Rect)' on a null object reference android.widget.ScrollView.scrollToChild(ScrollView.java:1324) android.widget.ScrollView.requestChildFocus(ScrollView.java:1426) android.view.ViewGroup.requestChildFocus(ViewGroup.java:659) android.view.ViewGroup.requestChildFocus(ViewGroup.java:659) android.view.ViewGroup.requestChildFocus(ViewGroup.java:659) android.view.ViewGroup.requestChildFocus(ViewGroup.java:659) android.view.ViewGroup.addViewInner(ViewGroup.java:3913) android.view.ViewGroup.addView(ViewGroup.java:3734) android.view.ViewGroup.addView(ViewGroup.java:3679) android.view.ViewGroup.addView(ViewGroup.java:3655) com.view.order.ThankYouActivity$override.setItemOrderMode(ThankYouActivity.java:1387) com.view.order.ThankYouActivity$override.orderDetailMode(ThankYouActivity.java:1220) com.view.order.ThankYouActivity$override.access$dispatch(ThankYouActivity.java) com.view.order.ThankYouActivity.orderDetailMode(ThankYouActivity.java) com.view.order.ThankYouActivity$override.openOrderDetail(ThankYouActivity.java:1032) com.view.order.ThankYouActivity$override.access$dispatch(ThankYouActivity.java) com.view.order.ThankYouActivity.openOrderDetail(ThankYouActivity.java) com.view.order.ThankYouActivity$12.onResponse(ThankYouActivity.java:765) com.view.order.ThankYouActivity$12.onResponse(ThankYouActivity.java:759) com.android.volley.toolbox.JsonRequest.deliverResponse(JsonRequest.java:65) com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:99) android.os.Handler.handleCallback(Handler.java:739) android.os.Handler.dispatchMessage(Handler.java:95)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Vinod Pattanshetti
, 1 year ago
Attempt to invoke virtual method 'void android.view.View.getDrawingRect(android.graphics.Rect)' on a null object reference android.widget.ScrollView.scrollToChild(ScrollView.java:1324) android.widget.ScrollView.requestChildFocus(ScrollView.java:1426
via xda-developers.com by Unknown author, 1 year ago
Attempt to invoke virtual method 'void java.util.ArrayList.clear()' on a null object reference at com.android.internal.telephony.dataconnection.DcTr acker.createAllApnList(DcTracker.java:2546) at com.android.internal.telephony.dataconnection.DcTr
via xda-developers.com by Unknown author, 2 years ago
Attempt to invoke virtual method 'java.lang.String java.lang.String.trim()' on a null object reference at com.tjm.receiver.NotificationHandler.createNotific ation(NotificationHandler.java:83) at com.tjm.receiver.MessageHandler.addNewMessageToUI
via xda-developers.com by Unknown author, 2 years ago
Attempt to invoke virtual method 'java.lang.String java.lang.String.trim()' on a null object reference at com.tjm.receiver.NotificationHandler.createNotific ation(NotificationHandler.java:83) at com.tjm.receiver.MessageHandler.addNewMessageToUI
via xda-developers.com by Unknown author, 2 years ago
Attempt to invoke virtual method 'long com.android.internal.telephony.SmsMessageBase.getT imestampMillis()' on a null object reference at android.telephony.SmsMessage.getTimestampMillis(Sm sMessage.java:625) at
via xda-developers.com by Unknown author, 2 years ago
Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference at com.android.systemui.statusbar.phone.PhoneStatusBa r.shouldUpdateStatusbar(PhoneStatusBar.java:3912) at
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.getDrawingRect(android.graphics.Rect)' on a null object reference android.widget.ScrollView.scrollToChild(ScrollView.java:1324) android.widget.ScrollView.requestChildFocus(ScrollView.java:1426) android.view.ViewGroup.requestChildFocus(ViewGroup.java:659) android.view.ViewGroup.requestChildFocus(ViewGroup.java:659) android.view.ViewGroup.requestChildFocus(ViewGroup.java:659) android.view.ViewGroup.requestChildFocus(ViewGroup.java:659) android.view.ViewGroup.addViewInner(ViewGroup.java:3913) android.view.ViewGroup.addView(ViewGroup.java:3734) android.view.ViewGroup.addView(ViewGroup.java:3679) android.view.ViewGroup.addView(ViewGroup.java:3655) com.view.order.ThankYouActivity$override.setItemOrderMode(ThankYouActivity.java:1387) com.view.order.ThankYouActivity$override.orderDetailMode(ThankYouActivity.java:1220) com.view.order.ThankYouActivity$override.access$dispatch(ThankYouActivity.java) com.view.order.ThankYouActivity.orderDetailMode(ThankYouActivity.java) com.view.order.ThankYouActivity$override.openOrderDetail(ThankYouActivity.java:1032) com.view.order.ThankYouActivity$override.access$dispatch(ThankYouActivity.java) com.view.order.ThankYouActivity.openOrderDetail(ThankYouActivity.java) com.view.order.ThankYouActivity$12.onResponse(ThankYouActivity.java:765) com.view.order.ThankYouActivity$12.onResponse(ThankYouActivity.java:759) com.android.volley.toolbox.JsonRequest.deliverResponse(JsonRequest.java:65) com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:99) android.os.Handler.handleCallback(Handler.java:739) android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)

Users with the same issue

4 times, 5 months ago
Once, 10 months ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Know the solutions? Share your knowledge to help other developers to debug faster.