Exception when Longpress on chart

When I longpress on the chart, I get the following exception.

══╡ EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════

The following _CastError was thrown while handling a gesture:

Null check operator used on a null value


When the exception was thrown, this was the stack:

#0 ContainerArea._performLongPress (package:syncfusion_flutter_charts/src/chart/base/chart_base.dart:3371:67)

#1 ContainerArea.build.<anonymous closure>.<anonymous closure> (package:syncfusion_flutter_charts/src/chart/base/chart_base.dart:2343:25)

#2 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:193:24)

#3 LongPressGestureRecognizer._checkLongPressStart (package:flutter/src/gestures/long_press.dart:714:11)

#4 LongPressGestureRecognizer.didExceedDeadline (package:flutter/src/gestures/long_press.dart:615:5)

#5 PrimaryPointerGestureRecognizer.didExceedDeadlineWithEvent (package:flutter/src/gestures/recognizer.dart:586:5)

#6 PrimaryPointerGestureRecognizer.addAllowedPointer.<anonymous closure> (package:flutter/src/gestures/recognizer.dart:530:41)

(elided 11 frames from class _RawReceivePortImpl, class _Timer, dart:async, and dart:async-patch)


Handler: "onLongPress"

Recognizer:

  LongPressGestureRecognizer#b1057

════════════════════════════════════════════════════════════════════════


I have no idea how to resolve this.



3 Replies 1 reply marked as answer

YG Yuvaraj Gajaraj Syncfusion Team October 19, 2021 03:46 PM UTC

Hi Peter, 
 
Greetings from Syncfusion. We have analyzed your query, and we have tried to reproduce the reported issue, but the scenario is not replicated at our end. Also ensured with all user interaction features available in our chart widget, however the issue didn’t get reproduced. So kindly provide more information about what the properties have you used or try to reproduce the reported issue in the below sample 
 
  
Regards, 
Yuvaraj.


PE Peter November 1, 2021 07:49 AM UTC

ok, the crash is due to missing series controller.


Marked as answer

YG Yuvaraj Gajaraj Syncfusion Team November 2, 2021 02:47 PM UTC

Hi Peter, 
 
Thanks for the update, and we are glad to hear that the issue gets resolved from your side. Please get back to us if you require further assistance. 
 
Regards, 
Yuvaraj. 


Loader.
Up arrow icon