MainView.qml:257: TypeError: Cannot call method 'hasOwnProperty' of null
Bug #1244660 reported by
Olivier Tilloy
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Fix Released
|
Medium
|
Tim Peeters | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
Undecided
|
Tim Peeters |
Bug Description
I’ve seen the following error message printed out in the console in a variety of situations for applications using a MainView:
file:
It might be harmless (seems so at a first glance, at least the applications’ functionality doesn’t seem affected), but either way it should be easy to add a check in order to avoid the error message.
One way to reliably reproduce is with webbrowser-app, reveal the toolbar and click the activity button to show the activity view, then reveal the toolbar and click the activity button again to hide the view.
Related branches
lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/fix1244660
- PS Jenkins bot: Approve (continuous-integration)
- Cris Dywan: Approve
-
Diff: 57 lines (+17/-1)3 files modifiedmodules/Ubuntu/Components/MainView.qml (+1/-1)
modules/Ubuntu/Components/plugin/plugin.cpp (+5/-0)
tests/unit/tst_mainview/tst_mainview.cpp (+11/-0)
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Tim Peeters (tpeeters) |
Changed in ubuntu-ui-toolkit: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I can confirm that following the steps suggested by Olivier I get the error to show up in the application output.