File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -811,14 +811,17 @@ class MethodChannelWebCallkit extends WebCallkitPlatform {
811811 required CallType callType,
812812 ActionSource source = ActionSource .notification,
813813 }) {
814- printDebug ("Call type changed: ${result .uuid }" , tag: tag);
815- // TODO - check all call states
816- final call = _callManager.getCall (result.uuid);
817- if (call != null ) {
818- final event = CallEvent .update (call);
819- _onCallTypeChangeListener? .call (event, callType, source);
820- } else {
821- printDebug ("_onCallTypeChange: Call not found: ${result .uuid }" , tag: tag);
814+ if (result.uuid != null ) {
815+ final uuid = result.uuid! ;
816+ printDebug ("Call type changed: ${result .uuid }" , tag: tag);
817+ // TODO - check all call states
818+ final call = _callManager.getCall (uuid);
819+ if (call != null ) {
820+ final event = CallEvent .update (call);
821+ _onCallTypeChangeListener? .call (event, callType, source);
822+ } else {
823+ printDebug ("_onCallTypeChange: Call not found: $uuid }" , tag: tag);
824+ }
822825 }
823826 }
824827
You can’t perform that action at this time.
0 commit comments