Since we're in the middle of reporting a failure, this can be due to an already-disappeared client-obj. If so, let's not NPE and just log a nice friendly null.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6325 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -284,8 +284,9 @@ public class PresentsSession
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void resolutionFailed (Name username, Exception reason) {
|
public void resolutionFailed (Name username, Exception reason) {
|
||||||
|
String oldName = _clobj == null ? null : _clobj.username;
|
||||||
log.warning("Unable to resolve new client object",
|
log.warning("Unable to resolve new client object",
|
||||||
"oldname", _clobj.username, "newname", username, "reason", reason, reason);
|
"oldname", oldName, "newname", username, "reason", reason, reason);
|
||||||
|
|
||||||
// let our listener know we're hosed
|
// let our listener know we're hosed
|
||||||
if (ucl != null) {
|
if (ucl != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user