Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IllegalStateException #118

Open
StanislavKleinikov opened this issue May 10, 2022 · 0 comments
Open

IllegalStateException #118

StanislavKleinikov opened this issue May 10, 2022 · 0 comments

Comments

@StanislavKleinikov
Copy link

hello. I get an exception trying to call ChartApiDelegate.removeSeries method. This exception raises all the time and cannot be catched. Vesrsion 3.8.0

E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.investpro.app, PID: 6033
    java.lang.IllegalStateException: Error: Value is null
        at jsCode.ensureNotNull(file:///android_asset/com/tradingview/lightweightcharts/scripts/app/main.js:270)
        at jsCode.TimeScale._internal_timeRangeForLogicalRange(file:///android_asset/com/tradingview/lightweightcharts/scripts/app/main.js:6595)
        at jsCode.TimeScale._internal_visibleTimeRange(file:///android_asset/com/tradingview/lightweightcharts/scripts/app/main.js:6587)
        at jsCode.TimeScaleApi.getVisibleRange(file:///android_asset/com/tradingview/lightweightcharts/scripts/app/main.js:11852)
        at jsCode.TimeScaleApi._private__onVisibleBarsChanged(file:///android_asset/com/tradingview/lightweightcharts/scripts/app/main.js:11956)
        at jsCode.Delegate._internal_fire(file:///android_asset/com/tradingview/lightweightcharts/scripts/app/main.js:654)
        at jsCode.TimeScale._private__setVisibleRange(file:///android_asset/com/tradingview/lightweightcharts/scripts/app/main.js:7054)
        at jsCode.TimeScale._private__updateVisibleRange(file:///android_asset/com/tradingview/lightweightcharts/scripts/app/main.js:6960)
     Caused by: java.lang.IllegalStateException
        at com.tradingview.lightweightcharts.api.delegates.ChartApiDelegate.removeSeries(ChartApiDelegate.kt:205)
        at com.tradingview.lightweightcharts.api.interfaces.ChartApi$DefaultImpls.removeSeries$default(ChartApi.kt:111)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant