Internal error when app is reactivated from background


#1

I get this error when the app is re-activated from background:

java.lang.NullPointerException: Attempt to invoke virtual method 'void com.shinobicontrols.charts.SChartGLDrawer.setFrameBufferSize(int, int)' on a null object reference
                                         at com.shinobicontrols.charts.be.onSurfaceChanged(SourceFile:181)
                                         at com.shinobicontrols.charts.GLTextureView$f.dO(SourceFile:889)
                                         at com.shinobicontrols.charts.GLTextureView$f.run(SourceFile:624)

I’m using the chart view (I can’t use the fragment approach):

<com.shinobicontrols.charts.ChartView
    android:id="@+id/temperatureChart"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentTop="true"/>

#2

Hi DryCleaner.
What version of shinobicharts for Android are you using?
Thanks,
Kai


#3

Hi Kay, I’m using shinobicontrols-android-charts-trial-java-1.9.4-0


#4

Hi,
Thanks for the update. May I please ask, are you forwarding on lifecycle callbacks to the ChartView from your Activity? For example during the onDestroy method?
Thanks,
Kai.