Project

General

Profile

Actions

Bug #7248

closed

getInvoiceAddressField of cbpaidUserExtension not accounting for empty user object

Added by krileon over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
06 August 2018
Due date:
% Done:

100%

Estimated time:

Description

When calling getInvoiceAddressField it's calling CBuser::getInstance( (int) $this->id )->getUserData() without checking first if the getInstance is null before calling getUserData. The second variable of getInstance should just be set to false so it can't return null and always returns a CBuser instance or the usage needs improved to account for null response.

https://www.joomlapolis.com/forum/255-developer-members-support/239595-alias-field-0-call-to-a-member-function-get-on-null#306650

Actions

Also available in: Atom PDF