500 Error when field_location_address is empty

Created on 1 April 2025, 10 days ago

Problem/Motivation

We have error when create node event (LB)
Error: Call to a member function toArray() on null in ws_event_tokens() (line 83 of ../docroot/modules/contrib/ws_event/ws_event.tokens.inc).

Steps to reproduce

Create location with empty field field_location_address and try to create event LB with this location

Proposed resolution

Use nullsafe operator https://php.watch/versions/8.0/null-safe-operator

πŸ› Bug report
Status

Active

Version

1.4

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine SVICER Mirgorod

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024