This commit is contained in:
dmytyar 2015-10-21 18:42:58 +02:00
parent 24107a8e9c
commit 3a9486fd26
1 changed files with 7 additions and 5 deletions

View File

@ -56,12 +56,14 @@ public class ServiceConnector {
public void handleMessage(Message message) { public void handleMessage(Message message) {
boolean isClaimed = false; boolean isClaimed = false;
String identifier = ((Bundle)message.obj).getString("identifier"); if (message.obj != null) {
if (identifier != null) { String identifier = ((Bundle) message.obj).getString("identifier");
if (identifier != null) {
for (ConnectorHandler handler : handlers) { for (ConnectorHandler handler : handlers) {
if (identifier.equals(handler.getID())) { if (identifier.equals(handler.getID())) {
isClaimed = handler.handleMessage(message); isClaimed = handler.handleMessage(message);
}
} }
} }
} }