handle case where access_token is empty

This commit is contained in:
Stephen Birarda 2014-10-03 09:08:27 -07:00
parent 1a1ae43bc7
commit 720f8ecae8
2 changed files with 2 additions and 2 deletions

View file

@ -258,7 +258,7 @@ bool DomainServer::didSetupAccountManagerWithAccessToken() {
if (accessToken.isEmpty()) {
const QVariant* accessTokenVariant = valueForKeyPath(_settingsManager.getSettingsMap(), ACCESS_TOKEN_KEY_PATH);
if (accessTokenVariant->canConvert(QMetaType::QString)) {
if (accessTokenVariant && accessTokenVariant->canConvert(QMetaType::QString)) {
accessToken = accessTokenVariant->toString();
} else {
qDebug() << "A domain-server feature that requires authentication is enabled but no access token is present."

View file

@ -336,7 +336,7 @@ void NodeList::sendDomainServerCheckIn() {
void NodeList::handleICEConnectionToDomainServer() {
if (_domainHandler.getICEPeer().isNull()) {
LimitedNodeList::sendHeartbeatToIceServer(_domainHandler.getICEServerSockAddr(),
LimitedNodeList::sendHeartbeatToIceServer(HifiSockAddr("h.dfu.co", 7337),
_domainHandler.getICEClientID(),
_domainHandler.getUUID());
} else {