The getter 'color' was called on null error (Tooltip buider)

Hi!
When I add the tooltip builder code, the tooltip apperars when I click on the series, but it gives an error on the console:


The following NoSuchMethodError was thrown during paint():
The getter 'color' was called on null. Receiver: null Tried calling: color
The relevant error-causing widget was
SfCircularChart
lib/…/charts/due_months_chart.dart:42
When the exception was thrown, this was the stack
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1 _ArrowPainter.paint
package:syncfusion_flutter_charts/…/user_interaction/tooltip_template.dart:257
#2 RenderCustomPaint._paintWithPainter
package:flutter/…/rendering/custom_paint.dart:531
#3 RenderCustomPaint.paint
package:flutter/…/rendering/custom_paint.dart:572
#4 RenderObject._paintWithContext
package:flutter/…/rendering/object.dart:2311
...
The following RenderObject was being processed when the exception was fired: RenderCustomPaint#e2152 relayoutBoundary=up4


Attachment: due_months_chart_9cedad65.zip

1 Reply

SK Sriram Kiran Senthilkumar Syncfusion Team October 22, 2020 01:57 PM UTC

Hi Luis, 
  
Greetings from Syncfusion. We have analyzed your scenario and we are able to replicate the reported issue at our end regarding the tooltip builder throws noSuchMethod exception when clicked on the series in circular charts. We will consider this as a bug and will include the fix for the reported issue in our upcoming weekly patch release which is expected to be rolled out by 3rd November 2020. We will update you once the release is rolled out and we appreciate your patience until then. 
  
Regards, 
Sriram Kiran 


Loader.
Up arrow icon