Page with Stack Trace appears after using Search function on homepage when user is logged as Loan Officer with no customers attached

Description

If you try to use Search function on homepage when user is logged as Loan Officer with no customers attached, then page with Stack Trace appears. See attached file with stack trace.

Repro:
1. Login to Mifos as Loan Officer with no customers attached.
2. On homepage, click on Search button.

Actual result:
Page with stack trace appears.

Expected result:
Page with no search results appears.

Environment

None

Assignee

mifosdeveloperqueue

Reporter

Lukasz Chudy

Labels

None

URL

None

Story Points

None

Team

Core

Scheduled For

None

Epic

None

Notify

None

productboard URL

None

Man Day Estimate

None

Components

Fix versions

Affects versions

Priority

Minor
Configure