After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 644858 - Exception when a bluetooth is removed
Exception when a bluetooth is removed
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-03-15 20:31 UTC by Giovanni Campagna
Modified: 2011-03-16 14:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Bluetooth: fix updating the device list (2.30 KB, patch)
2011-03-15 20:31 UTC, Giovanni Campagna
committed Details | Review

Description Giovanni Campagna 2011-03-15 20:31:18 UTC
JS ERROR: !!!   Exception was: TypeError: d2 is undefined
    JS ERROR: !!!     lineNumber = '130'
    JS ERROR: !!!     fileName = '/home/giovanni/gnome-shell/install/share/gnome-shell/js/ui/status/bluetooth.js'
    JS ERROR: !!!     stack = '([object _private_GnomeBluetoothApplet_SimpleDevice],(void 0))@/home/giovanni/gnome-shell/install/share/gnome-shell/js/ui/status/bluetooth.js:130
([object _private_GnomeBluetoothApplet_Applet])@/home/giovanni/gnome-shell/install/share/gnome-shell/js/ui/status/bluetooth.js:146
([object _private_GnomeBluetoothApplet_Applet])@/home/giovanni/gnome-shell/install/share/gjs-1.0/lang.js:110

Patch coming...
Comment 1 Giovanni Campagna 2011-03-15 20:31:58 UTC
Created attachment 183466 [details] [review]
Bluetooth: fix updating the device list

Inside the inner loop, use the inner iterator, not that of the outer
loop. At the same time, refactor the code to rely less on private
properties appended to foreign objects.
Comment 2 Dan Winship 2011-03-16 14:15:21 UTC
Comment on attachment 183466 [details] [review]
Bluetooth: fix updating the device list

looks right
Comment 3 Giovanni Campagna 2011-03-16 14:31:16 UTC
Attachment 183466 [details] pushed as 7f67c34 - Bluetooth: fix updating the device list