RTC bug PR-6.0-dev Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
14 Jan 2026

Pull Request for Issue # .

Summary of Changes

Extensions can use the ListView class without defining a filter form. In this case, the $filterForm property remains null, which can lead to a fatal error when the view attempts to access it without a null check.

This PR adds a guard check to safely handle the absence of a filter form and prevent a fatal error.

Testing Instructions

  • Use Joomla 6
  • Install the attached com_items component. It is a very basic component created by Gitub copilot for testing
    com_items.zip
  • Access to Components -> Items

Actual Result BEFORE Applying This Pull Request

You got fatal error Call to a member function addControlField() on null due to missing null check in ListView class

Expected Result AFTER Applying This Pull Request

No error anymore. You see a screen displays list of items (empty until you add items to it). You might see a warning Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in but ignore it for now. The main thing is fatal error is sorted by this PR.

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 joomdonation joomdonation - open - 14 Jan 2026
avatar joomdonation joomdonation - change - 14 Jan 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 Jan 2026
Category Libraries
avatar joomdonation joomdonation - change - 14 Jan 2026
The description was changed
avatar joomdonation joomdonation - edited - 14 Jan 2026
avatar richard67
richard67 - comment - 14 Jan 2026

@joomdonation As this PR is made for the 6.0-dev branch: Is this a bug fix specific for 6.x? or does the issue which it fixes also exist in 5.4-dev? In this case the PR should be made for the 5.4-dev branch. Or if it counts as a new feature, then for the 6.1-dev branch. See https://github.com/joomla/joomla-cms?tab=readme-ov-file#which-branch-should-my-pull-request-target .

avatar joomdonation
joomdonation - comment - 14 Jan 2026

@richard67 It is a bug fix for 6.0-dev branch only. The issue was introduced by my PR for 6.0-dev #46165

avatar joomdonation joomdonation - change - 14 Jan 2026
The description was changed
avatar joomdonation joomdonation - edited - 14 Jan 2026
avatar ceford ceford - test_item - 17 Jan 2026 - Tested successfully
avatar ceford
ceford - comment - 17 Jan 2026

I have tested this item ✅ successfully on adb8c1b


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46689.

avatar Fedik Fedik - test_item - 17 Jan 2026 - Tested successfully
avatar Fedik
Fedik - comment - 17 Jan 2026

I have tested this item ✅ successfully on adb8c1b


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46689.

avatar Fedik Fedik - change - 17 Jan 2026
Status Pending Ready to Commit
avatar Fedik
Fedik - comment - 17 Jan 2026

rtc


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46689.

avatar Bodge-IT Bodge-IT - change - 25 Jan 2026
Labels Added: RTC bug PR-6.0-dev
avatar Bodge-IT Bodge-IT - change - 25 Jan 2026
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2026-01-25 11:48:52
Closed_By Bodge-IT
avatar Bodge-IT Bodge-IT - close - 25 Jan 2026
avatar Bodge-IT Bodge-IT - merge - 25 Jan 2026
avatar Bodge-IT
Bodge-IT - comment - 25 Jan 2026

Thanks @joomdonation for fixing, thanks @ceford & @Fedik for tests

Add a Comment

Login with GitHub to post a comment