Bug 470801 - calendar/InfiniteList.qml:88: TypeError: Value is null and could not be converted to an object
Summary: calendar/InfiniteList.qml:88: TypeError: Value is null and could not be conve...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Digital Clock widget (other bugs)
Version First Reported In: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-06-08 19:04 UTC by Nate Graham
Modified: 2023-10-27 16:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2023-06-08 19:04:07 UTC
Also for line 93.

Seen in journal logs for Plasmashell on Plasma 6 Wayland git master.

Relevant code in InfiniteList.qml does this:

        switch(infiniteList.viewType) {
            case InfiniteList.ViewType.DayView:
                infiniteList.itemAtIndex(0).gridModel = previousAlternativeBackend.item.daysModel;
                infiniteList.itemAtIndex(2).gridModel = nextAlternativeBackend.item.daysModel;
                break;

            case InfiniteList.ViewType.DecadeView:
                infiniteList.itemAtIndex(0).gridModel = previousYearModel.item;
                infiniteList.itemAtIndex(2).gridModel = nextYearModel.item;
                break;
        }

My guess is that itemAtIndex(0) is null at the moment it's called.
Comment 1 Nate Graham 2023-10-27 16:24:05 UTC
Fixed now.