test if we really have a connection (we won't have one if the auth failed)
authorNikita Kozlov <nikita@elyzion.net>
Wed, 22 Feb 2012 18:55:21 +0100
changeset 9365cfaa17be49e
parent 935 5801f1f5f0bd
child 937 e0e5ea20e1c5
test if we really have a connection (we won't have one if the auth failed)
src/com/beem/project/beem/BeemService.java
     1.1 --- a/src/com/beem/project/beem/BeemService.java	Wed Feb 22 00:29:10 2012 +0100
     1.2 +++ b/src/com/beem/project/beem/BeemService.java	Wed Feb 22 18:55:21 2012 +0100
     1.3 @@ -527,7 +527,9 @@
     1.4  			handleDisconnect(accountName);
     1.5  		    } else {
     1.6  			handleConnect(accountName);
     1.7 -			mConnection.get(accountName).changeStatus(status, "");
     1.8 +			if (mConnection.containsKey(accountName)) {
     1.9 +			   mConnection.get(accountName).changeStatus(status, "");
    1.10 +			}
    1.11  		    }
    1.12  		    break;
    1.13  		case MESSAGE_MUC_JOIN: