fix null pointer exception

This commit is contained in:
Adrian Tiberius 2016-12-08 11:36:56 +02:00
parent fdecec9f28
commit ac617b73d5
1 changed files with 1 additions and 1 deletions

View File

@ -99,6 +99,7 @@ public class StatusService extends Service {
private boolean handleMessage(Message message) {
Log.d(TAG, "Received service message." + message.toString());
applicationMessenger = message.replyTo;
doStartNode();
switch (message.what) {
@ -177,7 +178,6 @@ public class StatusService extends Service {
}
private void startNode(Message message) {
applicationMessenger = message.replyTo;
doStartNode();
createAndSendReply(message, StatusMessages.MSG_START_NODE, null);
}