DG fails on layout.getProperties method

Since this week, following DG native method fails on execution: layout.getProperties();

Can you please help me to get this resolved?

Stack trace:
#0 Object._noSuchMethod (dart:core-patch/object_patch.dart:43)
#1 Object.noSuchMethod (dart:core-patch/object_patch.dart:47)
#2 EntitiesPlugin.getProperties.. (package:datlas/src/plugins/entities_plugin.dart:153)
#3 Maps._fillMapWithMappedIterable (dart:collection/maps.dart:349)
#4 new LinkedHashMap.fromIterable (dart:collection/linked_hash_map.dart:115)
#5 EntitiesPlugin.getProperties. (package:datlas/src/plugins/entities_plugin.dart:153)

#6 DbContext.run. (package:datlas/src/db_context.dart:375)

#7 _rootRun (dart:async/zone.dart:1120)
#8 _CustomZone.run (dart:async/zone.dart:1001)
#9 runZoned (dart:async/zone.dart:1467)
#10 DbContext.run (package:datlas/src/db_context.dart:374)

#11 GrokServerDbPlugin.dbRun (package:datlas/src/grok_server_plugin.dart:88)

#12 EntitiesPlugin.getProperties (package:datlas/src/plugins/entities_plugin.dart:151)
#13 _LocalInstanceMirror._invoke (dart:mirrors-patch/mirrors_impl.dart:526)
#14 _LocalInstanceMirror.invoke (dart:mirrors-patch/mirrors_impl.dart:522)
#15 _LocalClosureMirror.apply (dart:mirrors-patch/mirrors_impl.dart:550)
#16 ConstrainedFunctionProxy.invoke (package:constrain/constrained_function_proxy.dart:41)
#17 _wrapHandler. (package:shelf_bind/src/model/handler_bindings.dart:119)

#18 HandlerBinding._handleRequest (package:shelf_bind/src/model/handler_bindings.dart:78)
#19 DefaultSegmentRouter.handle (package:shelf_route/src/default_segment_router.dart:31)

#20 _BaseRoute.handle (package:shelf_route/src/route_impl.dart:27)
#21 RequestRouterImpl._createHandler. (package:shelf_route/src/route_impl.dart:112)
#22 DefaultSegmentRouter.handle (package:shelf_route/src/default_segment_router.dart:31)

#23 _BaseRoute.handle (package:shelf_route/src/route_impl.dart:27)
#24 _BaseRoute.createHandler. (package:shelf_route/src/route_impl.dart:32)

#25 GrokServer.authorize..inner. (package:datlas/src/grok_server.dart:437)
#26 _rootRun (dart:async/zone.dart:1120)
#27 _CustomZone.run (dart:async/zone.dart:1001)
#28 runZoned (dart:async/zone.dart:1467)
#29 GrokServer.authorize..inner (package:datlas/src/grok_server.dart:435)
#30 GrokServer.authorize. (package:datlas/src/grok_server.dart:483)

#31 logRequests... (package:datlas/src/errors.dart:130)
#32 new Future.sync (dart:async/future.dart:206)
#33 logRequests.. (package:datlas/src/errors.dart:130)
#34 GrokServer.statistics. (package:datlas/src/grok_server.dart:372)

#35 createMiddleware.... (package:shelf/src/middleware.dart:70)
#36 new Future.sync (dart:async/future.dart:206)
#37 createMiddleware... (package:shelf/src/middleware.dart:70)
#38 _rootRunUnary (dart:async/zone.dart:1128)
#39 _CustomZone.runUnary (dart:async/zone.dart:1012)
#40 _FutureListener.handleValue (dart:async/future_impl.dart:129)
#41 _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:636)
#42 _Future._propagateToListeners (dart:async/future_impl.dart:665)
#43 _Future._addListener. (dart:async/future_impl.dart:343)
#44 _rootRun (dart:async/zone.dart:1120)
#45 _CustomZone.run (dart:async/zone.dart:1001)
#46 _CustomZone.runGuarded (dart:async/zone.dart:901)
#47 _CustomZone.bindCallback. (dart:async/zone.dart:926)
#48 _microtaskLoop (dart:async/schedule_microtask.dart:41)
#49 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50)
#50 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:99)
#51 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:152)

packages/$sdk/lib/_internal/js_runtime/lib/js_primitives.dart:30
Uncaught Operation caused an exception (NoSuchMethodError: The getter ‘name’ was called on null.
Receiver: null
Tried calling: name)

Thanks for reporting!

I assume there is a bug in the property saving method, so there are property values without links to property declarations. I will try to dig into the save method.

Also, I’ve added a condition to drop values that don’t have a link to the property.

Could be, I’ve just discovered this issue last week so probably related to a recent release.
Keep us posted!