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

java.lang.NullPointerException: 	at xxxxxx.drawCanvas.onDraw_Original(drawCanvas.java:38)	at xxxxxx.drawCanvas.onDraw(drawCanvas.java)	at android.view.View.draw(View.java:17068)	at android.view.View.draw(View.java:16976)	at android.view.ViewGroup.drawChild_Original(ViewGroup.java:3764)	at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:61)	at android.view.ViewGroup.drawChild(ViewGroup.java:3764)	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)	at android.view.View.draw(View.java:16974)	at android.view.ViewGroup.drawChild_Original(ViewGroup.java:3764)	at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:61)	at android.view.ViewGroup.drawChild(ViewGroup.java:3764)	at android.support.design.widget.CoordinatorLayout.drawChild(CoordinatorLayout.java:1140)	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)	at android.view.View.draw(View.java:16974)	at android.view.ViewGroup.drawChild_Original(ViewGroup.java:3764)	at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:61)	at android.view.ViewGroup.drawChild(ViewGroup.java:3764)	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)	at android.view.View.draw(View.java:16974)	at android.view.ViewGroup.drawChild_Original(ViewGroup.java:3764)	at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:61)	at android.view.ViewGroup.drawChild(ViewGroup.java:3764)	at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3550)	at android.view.View.draw(View.java:17071)	at com.android.layoutlib.bridge.impl.RenderSessionImpl.render(RenderSessionImpl.java:394)	at com.android.layoutlib.bridge.impl.RenderSessionImpl.render(RenderSessionImpl.java:496)	at com.android.layoutlib.bridge.BridgeRenderSession.render(BridgeRenderSession.java:87)	at com.android.ide.common.rendering.api.RenderSession.render(RenderSession.java:154)	at com.android.ide.common.rendering.api.RenderSession.render(RenderSession.java:136)	at com.android.tools.idea.rendering.RenderTask.lambda$renderInner$54(RenderTask.java:698)	at java.util.concurrent.FutureTask.run(FutureTask.java:266)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)	at java.lang.Thread.run(Thread.java:745)