Android ShinobiCharts Crash (Title.onDraw)


#1

Here is a crash we are seeing from some of our users. We do not know the cause of it:

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.text.Layout.draw(android.graphics.Canvas)' on a null object reference
       at com.shinobicontrols.charts.Title.onDraw(SourceFile:193)
       at android.view.View.draw(View.java:16472)
       at android.view.View.updateDisplayListIfDirty(View.java:15402)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3693)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3672)
       at android.view.View.updateDisplayListIfDirty(View.java:15362)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3693)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3672)
       at android.view.View.updateDisplayListIfDirty(View.java:15362)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3693)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3672)
       at android.view.View.updateDisplayListIfDirty(View.java:15362)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3693)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3672)
       at android.view.View.updateDisplayListIfDirty(View.java:15362)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3693)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3672)
       at android.view.View.updateDisplayListIfDirty(View.java:15362)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3693)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3672)
       at android.view.View.updateDisplayListIfDirty(View.java:15362)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3693)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3672)
       at android.view.View.updateDisplayListIfDirty(View.java:15362)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3693)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3672)
       at android.view.View.updateDisplayListIfDirty(View.java:15362)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3693)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3672)
       at android.view.View.updateDisplayListIfDirty(View.java:15362)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3693)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3672)
       at android.view.View.updateDisplayListIfDirty(View.java:15362)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3693)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3672)
       at android.view.View.updateDisplayListIfDirty(View.java:15362)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.View.draw(View.java:16194)
       at android.view.ViewGroup.drawChild(ViewGroup.java:3709)
       at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3502)
       at android.view.View.updateDisplayListIfDirty(View.java:15397)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.View.draw(View.java:16194)
       at android.view.ViewGroup.drawChild(ViewGroup.java:3709)
       at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3502)
       at android.view.View.updateDisplayListIfDirty(View.java:15397)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3693)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3684)
       at android.view.View.updateDisplayListIfDirty(View.java:15362)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3693)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3672)
       at android.view.View.updateDisplayListIfDirty(View.java:15362)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3693)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3672)
       at android.view.View.updateDisplayListIfDirty(View.java:15362)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.View.draw(View.java:16194)
       at android.view.ViewGroup.drawChild(ViewGroup.java:3709)
       at android.support.design.widget.CoordinatorLayout.drawChild(CoordinatorLayout.java:1077)
       at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3502)
       at android.view.View.updateDisplayListIfDirty(View.java:15397)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3693)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3672)
       at android.view.View.updateDisplayListIfDirty(View.java:15362)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3693)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3672)
       at android.view.View.updateDisplayListIfDirty(View.java:15362)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3693)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3672)
       at android.view.View.updateDisplayListIfDirty(View.java:15362)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3693)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3672)
       at android.view.View.updateDisplayListIfDirty(View.java:15362)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3693)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3672)
       at android.view.View.updateDisplayListIfDirty(View.java:15362)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3693)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3672)
       at android.view.View.updateDisplayListIfDirty(View.java:15362)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3693)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3672)
       at android.view.View.updateDisplayListIfDirty(View.java:15362)
       at android.view.View.getDisplayList(View.java:15424)
       at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:310)
       at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:316)
       at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:355)
       at android.view.ViewRootImpl.draw(ViewRootImpl.java:2889)
       at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2683)
       at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2270)
       at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1264)
       at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6944)
       at android.view.Choreographer$CallbackRecord.run(Choreographer.java:777)
       at android.view.Choreographer.doCallbacks(Choreographer.java:590)
       at android.view.Choreographer.doFrame(Choreographer.java:560)
       at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:763)
       at android.os.Handler.handleCallback(Handler.java:739)
       at android.os.Handler.dispatchMessage(Handler.java:95)
       at android.os.Looper.loop(Looper.java:145)
       at android.app.ActivityThread.main(ActivityThread.java:6837)
       at java.lang.reflect.Method.invoke(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:372)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)