Error: Call to a member function getKeyValue() on null

Created on 20 May 2025, 16 days ago

Problem/Motivation

The MilvusProvider::getConnectionData() method throws a fatal error when the specified API key is not found in the Key module. Specifically, the method assumes the key exists and attempts to call getKeyValue() on a null object returned by $this->keyRepository->getKey($token). This causes an error that halts execution. The code should instead check whether the key exists before attempting to access its value, and provide a clear exception if it's missing.

๐Ÿ› Bug report
Status

Active

Version

1.1

Component

Code

Created by

๐Ÿ‡ช๐Ÿ‡ธSpain gxleano Cรกceres

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