PhilJay / MPAndroidChart

A powerful 🚀 Android chart view / graph view library, supporting line- bar- pie- radar- bubble- and candlestick charts as well as scaling, panning and animations.
Other
37.63k stars 9.02k forks source link

LineChartRenderer.java:789 NullPointerException #2330

Open Sicness opened 8 years ago

Sicness commented 8 years ago

compile 'com.github.PhilJay:MPAndroidChart:v3.0.0-beta1'

Fatal Exception: java.lang.NullPointerException

android.graphics.Canvas.setBitmap (Canvas.java:143) com.github.mikephil.charting.renderer.LineChartRenderer.releaseBitmap (LineChartRenderer.java:789) com.github.mikephil.charting.charts.LineChart.onDetachedFromWindow (LineChart.java:46) android.view.View.dispatchDetachedFromWindow (View.java:6173) android.view.ViewGroup.dispatchDetachedFromWindow (ViewGroup.java:1164) android.view.ViewGroup.dispatchDetachedFromWindow (ViewGroup.java:1162) android.view.ViewGroup.dispatchDetachedFromWindow (ViewGroup.java:1162) android.view.ViewGroup.dispatchDetachedFromWindow (ViewGroup.java:1162) android.view.ViewGroup.dispatchDetachedFromWindow (ViewGroup.java:1162) android.view.ViewGroup.dispatchDetachedFromWindow (ViewGroup.java:1162) android.view.ViewRoot.dispatchDetachedFromWindow (ViewRoot.java:1751) android.view.ViewRoot.doDie (ViewRoot.java:2853) android.view.ViewRoot.die (ViewRoot.java:2823) android.view.WindowManagerImpl.removeViewImmediate (WindowManagerImpl.java:241) android.view.Window$LocalWindowManager.removeViewImmediate (Window.java:436) android.app.ActivityThread.handleDestroyActivity (ActivityThread.java:2705) android.app.ActivityThread.access$2100 (ActivityThread.java:117) android.app.ActivityThread$H.handleMessage (ActivityThread.java:968) android.os.Handler.dispatchMessage (Handler.java:99) android.os.Looper.loop (Looper.java:130) android.app.ActivityThread.main (ActivityThread.java:3687) java.lang.reflect.Method.invokeNative (Method.java) java.lang.reflect.Method.invoke (Method.java:507) com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:867) com.android.internal.os.ZygoteInit.main (ZygoteInit.java:625) dalvik.system.NativeStart.main (NativeStart.java)

ru.darklogic.airsoftcalculator_issue_1_crash_57f404fd00af00014a82612e31db1d27.txt

dzungpv commented 8 years ago

I have the same issue