Calling repeaters.indexOf() in Tabs.qml when repeaters is undefined

Bug #1311891 reported by Tim Peeters
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Triaged
Medium
Zsombor Egri

Bug Description

In Tabs.qml, indexOf() of repeaters is called when repeaters is (apparently) undefined. See below:

tim@trusty:~/dev/ubuntu-ui-toolkit/staging$ source export_modules_dir.sh
tim@trusty:~/dev/ubuntu-ui-toolkit/staging$ cd tests/resources/navigation/
tim@trusty:~/dev/ubuntu-ui-toolkit/staging/tests/resources/navigation$ qmlscene RepeaterTabs.qml
unity::action::ActionManager::ActionManager(QObject*):
 Could not determine application identifier. HUD will not work properly.
 Provide your application identifier in $APP_ID environment variable.
file:///home/tim/dev/ubuntu-ui-toolkit/staging/modules/Ubuntu/Components/Tabs.qml:342: TypeError: Cannot call method 'indexOf' of undefined
file:///home/tim/dev/ubuntu-ui-toolkit/staging/modules/Ubuntu/Components/Tabs.qml:342: TypeError: Cannot call method 'indexOf' of undefined

The same warning also shows when running the unit tests for the tabs.
It may have been fixed in the dynamic tabs MR, but that one was reverted.

Tags: tabs
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
assignee: nobody → Zsombor Egri (zsombi)
tags: added: tabs
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
importance: Undecided → Medium
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
status: New → Triaged
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Zsombor Egri (zsombi)
importance: Undecided → Medium
status: New → Triaged
Zoltan Balogh (bzoltan)
no longer affects: ubuntu-ui-toolkit
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.