null fix
This commit is contained in:
parent
24107a8e9c
commit
3a9486fd26
|
@ -56,12 +56,14 @@ public class ServiceConnector {
|
|||
public void handleMessage(Message message) {
|
||||
|
||||
boolean isClaimed = false;
|
||||
String identifier = ((Bundle)message.obj).getString("identifier");
|
||||
if (identifier != null) {
|
||||
if (message.obj != null) {
|
||||
String identifier = ((Bundle) message.obj).getString("identifier");
|
||||
if (identifier != null) {
|
||||
|
||||
for (ConnectorHandler handler : handlers) {
|
||||
if (identifier.equals(handler.getID())) {
|
||||
isClaimed = handler.handleMessage(message);
|
||||
for (ConnectorHandler handler : handlers) {
|
||||
if (identifier.equals(handler.getID())) {
|
||||
isClaimed = handler.handleMessage(message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue