Bug 1668

Summary: HOB cancel file choose will cause traceback
Product: [Build System, Metadata & Runtime] Hob Reporter: Jessica <jessica.zhang>
Component: hobAssignee: Joshua Lock - Disabled <josh>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jessica.zhang, jiajun.xu, poky.bs.watcher, poky.watcher, richard.purdie
Version: unspecified   
Target Milestone: 1.1 Point Release   
Hardware: x86   
OS: Multiple   
Whiteboard: Patch submitted
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Jessica 2011-10-11 09:33:59 UTC
From HOB file menu -> Open, in the file chooser, if we select cancel, will get following:

Traceback (most recent call last):
  File "/home/jzhang/poky-master/bitbake/lib/bb/ui/hob.py", line 404, in open_cb
    self.model.load_image_rep(rep)
  File "/home/jzhang/poky-master/bitbake/lib/bb/ui/crumbs/tasklistmodel.py", line 298, in load_image_rep
    packages = rep.userpkgs.split(" ")
AttributeError: 'NoneType' object has no attribute 'split'
Comment 1 Joshua Lock - Disabled 2011-11-01 11:55:59 UTC
Fix is in master

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e9f66d981ad7ac726988842490192b9b19920445

Also needs merging to Edison branch
Comment 2 Richard Purdie 2011-11-25 03:01:55 UTC
Marking as fixed, we'll consider the backport to edison as part of its release process.