PR-4.3-dev Pending

User tests: Successful: Unsuccessful:

avatar Lab5-Switzerland
Lab5-Switzerland
26 Apr 2023

Proper checking of isset conditions, roborating the code. Otherwise, in case there is no form set, code will crash ( with error : "Call to a member function getXml() on null" ). Please Update the code accordingly.

Pull Request for Issue # .

Summary of Changes

Addes isset check to prevent crash of code, when improperly assumed condition ( ->form exists ) is not met. Roborates the Code.

Testing Instructions

Not necessary, it's selfexplaining in this case.

Actual result BEFORE applying this Pull Request

crash with error : "Call to a member function getXml() on null" if the field has no form set

Expected result AFTER applying this Pull Request

just works even when there is no form present /set.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar joomla-cms-bot joomla-cms-bot - change - 26 Apr 2023
Category Libraries
avatar Lab5-Switzerland Lab5-Switzerland - open - 26 Apr 2023
avatar Lab5-Switzerland Lab5-Switzerland - change - 26 Apr 2023
Status New Pending
avatar Lab5-Switzerland Lab5-Switzerland - change - 26 Apr 2023
The description was changed
avatar Lab5-Switzerland Lab5-Switzerland - edited - 26 Apr 2023
avatar Lab5-Switzerland Lab5-Switzerland - change - 26 Apr 2023
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2023-04-26 17:51:14
Closed_By Lab5-Switzerland
Labels Added: PR-4.3-dev
avatar Lab5-Switzerland Lab5-Switzerland - close - 26 Apr 2023

Add a Comment

Login with GitHub to post a comment