MarlonJD / babylonjs_viewer

Flutter 3D Model Viewer with BabylonJS Viewer
MIT License
27 stars 10 forks source link

Null check operator used on a null value. #1

Closed sanalkv closed 3 years ago

sanalkv commented 3 years ago

I received the folllowing error,while loading the example.

`════════ Exception caught by widgets library ═══════════════════════════════════
The following _CastError was thrown building BabylonJSViewer(dirty, state: _BabylonJSViewerState#21ec1):
Null check operator used on a null value

The relevant error-causing widget was
BabylonJSViewer
lib/ui/sample.dart:23
When the exception was thrown, this was the stack
#0      _BabylonJSViewerState.build
package:babylonjs_viewer/src/babylonjs_viewer.dart:61
#1      StatefulElement.build
package:flutter/…/widgets/framework.dart:4691
#2      ComponentElement.performRebuild
package:flutter/…/widgets/framework.dart:4574
#3      StatefulElement.performRebuild
package:flutter/…/widgets/framework.dart:4746
#4      Element.rebuild
package:flutter/…/widgets/framework.dart:4267
...
═══════════════════════════════════════════════════════════════════════════════`
MarlonJD commented 3 years ago

Which version of dart sdk and flutter are you using, and which version of this library?

MIGMLG commented 3 years ago

The error comes from this _proxy variable

image

My SDK versions: Flutter 2.2.2 • channel stable • https://github.com/flutter/flutter.git Framework • revision d79295af24 (6 days ago) • 2021-06-11 08:56:01 -0700 Engine • revision 91c9fc8fe0 Tools • Dart 2.13.3

MarlonJD commented 3 years ago

thanks for the #2 merged, I'm trying to fix issue same time