project-hatohol/hatohol — pull request #185 by ashie (2014-04-21 02:33:14+00:00)
Title: [client][utils] Check existence of hostId at getHostName()

An error is occured on my broken environment (old data are remained
and cannot connect to a host):

[http://localhost:8000/static/js/utils.js:165]
TypeError: server.hosts[hostId] is undefined

Although it's not happend on usual cases (maybe), we should check
existence of the element before accessing to it.