fix null pointer exception
This commit is contained in:
parent
fdecec9f28
commit
ac617b73d5
|
@ -99,6 +99,7 @@ public class StatusService extends Service {
|
||||||
|
|
||||||
private boolean handleMessage(Message message) {
|
private boolean handleMessage(Message message) {
|
||||||
Log.d(TAG, "Received service message." + message.toString());
|
Log.d(TAG, "Received service message." + message.toString());
|
||||||
|
applicationMessenger = message.replyTo;
|
||||||
doStartNode();
|
doStartNode();
|
||||||
switch (message.what) {
|
switch (message.what) {
|
||||||
|
|
||||||
|
@ -177,7 +178,6 @@ public class StatusService extends Service {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void startNode(Message message) {
|
private void startNode(Message message) {
|
||||||
applicationMessenger = message.replyTo;
|
|
||||||
doStartNode();
|
doStartNode();
|
||||||
createAndSendReply(message, StatusMessages.MSG_START_NODE, null);
|
createAndSendReply(message, StatusMessages.MSG_START_NODE, null);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue