Merge lp:~mterry/nux/null-ibus-config into lp:nux
Proposed by
Michael Terry
Status: | Rejected |
---|---|
Rejected by: | Brandon Schaefer |
Proposed branch: | lp:~mterry/nux/null-ibus-config |
Merge into: | lp:nux |
Diff against target: |
36 lines (+10/-3) 1 file modified
Nux/InputMethodIBus.cpp (+10/-3) |
To merge this branch: | bzr merge lp:~mterry/nux/null-ibus-config |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Needs Fixing | |
Tim Penhey (community) | Needs Fixing | ||
Review via email: mp+129212@code.launchpad.net |
Commit message
Gracefully handle ibus_bus_get_config returning NULL
Description of the change
ibus_bus_get_config can return NULL in two cases:
1) !ibus_bus_
2) The configuration daemon at dbus name org.freedesktop
not available
The current nux code does not gracefully handle NULL being returned, and
crashes, as can be seen in bug 1047944.
To post a comment you must log in.
Unmerged revisions
- 689. By Michael Terry
-
merge from trunk
- 688. By Michael Terry
-
add some comments explaining how ibus config might be null
- 687. By Michael Terry
-
handle NULL return from ibus_bus_get_config
Can I get you to add a comment in the code just before the if statement saying why it may be null? Just like you did in the description. That'd help anyone coming to this code later.
Cheers,
Tim