Crash on adding a location when no other locations are present (indicator-weather crashed with TypeError in ok(): 'NoneType' object has no attribute '__getitem__')
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Weather Indicator |
Fix Released
|
High
|
Joshua Tasker |
Bug Description
Every time I install indicator-weather and then add my city, it works fine until I try to click "OK" - basically nothing happens and the system reports a crash. Once I cancel out and exit indicator-weather, when I reopen it my location has been saved and the indicator works normally.
ProblemType: Crash
DistroRelease: Ubuntu 13.04
Package: indicator-weather 13.06.01 [origin: LP-PPA-
ProcVersionSign
Uname: Linux 3.8.0-30-generic x86_64
NonfreeKernelMo
ApportVersion: 2.9.2-0ubuntu8.3
Architecture: amd64
CrashDB: indicator_weather
Date: Wed Sep 11 15:45:18 2013
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/
InstallationDate: Installed on 2013-09-11 (0 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
InterpreterPath: /usr/bin/python2.7
MarkForUpload: True
PackageArchitec
ProcCmdline: /usr/bin/python /usr/bin/
ProcEnviron:
LANGUAGE=en_CA:en
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_CA.UTF-8
SHELL=/bin/zsh
PythonArgs: ['/usr/
SourcePackage: indicator-weather
ThirdParty: True
Title: indicator-weather crashed with TypeError in ok(): 'NoneType' object has no attribute '__getitem__'
Traceback:
Traceback (most recent call last):
File "/usr/bin/
if wi.places[i] is not None and wi.places[i][0] == wi.place[0]:
TypeError: 'NoneType' object has no attribute '__getitem__'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
Changed in weather-indicator: | |
status: | New → Triaged |
Changed in weather-indicator: | |
importance: | Medium → High |
assignee: | nobody → Joshua Tasker (jtasker) |
Changed in weather-indicator: | |
status: | Fix Committed → Fix Released |
This only occurs if you have no places set up -- the check for an empty place wasn't working.
It will be fixed in the next unstable build, but for now I have attached a patch to fix the issue.