Project

General

Profile

Actions

Bug #7248

closed

getInvoiceAddressField of cbpaidUserExtension not accounting for empty user object

Added by krileon over 6 years ago. Updated over 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 #1

Updated by krileon over 6 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Fixed in MR !135

Actions #2

Updated by beat almost 6 years ago

  • Project changed from 2 to CB Paid Subscriptions
Actions #3

Updated by beat almost 6 years ago

  • Target version changed from CbSubs 4.4.1 to 4.3.1
Actions #4

Updated by beat over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF