Add null check on system user creation

Description

While creating system user, user with system username is fetched from User feign client. If feign client returns not null result, that result will be used to create system user, otherwise Optional.empty() will be returned. 

While fetching user, PrepareSystemUserService tries to get first user from returned result, and if result is null NPE will be thrown, which should be fixed.

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:
Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

None

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created February 10, 2023 at 6:27 AM
Updated February 10, 2023 at 11:32 AM
Resolved February 10, 2023 at 11:32 AM
TestRail: Cases
TestRail: Runs